This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var path = require("path"); | |
var fs = require("fs"); | |
module.exports = function($logger, $projectData) { | |
let buildGradleContent; | |
function patchNode(node, check, content = check) | |
{ | |
const originalDepNode = buildGradleContent.match( | |
new RegExp(node + " {[\\s\\S]*?}", "gi") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Function to process the transfer transaction. | |
* | |
* @param {org.wiboo.wibxp.financial.TransferTransaction} tx The financial transaction | |
* @transaction | |
*/ | |
function transferTransaction(tx) | |
{ | |
// Check if the amount is valid | |
isAmountValid(tx.amount); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Check if the given amount is valid. | |
* | |
* @param {number} amount The amount | |
*/ | |
function is AmountValid(amount) | |
{ | |
assert(amount >= 0, 'Invalid amount! Should be >= 0'); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
typedef enum DATATYPE { | |
CUSTOMER, | |
CAR | |
} datatype_t; | |
struct customer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> //FUCKING I/O | |
#include <stdlib.h> | |
/* D:/matriz.txt ~> | |
* 6 | |
* 101011 | |
* 111100 | |
* 101000 | |
* 100111 | |
* 011011 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
//Offset de Q | |
#define Q 100 | |
int main() { | |
int i, j; //laços | |
int quantidadeAlternativas; //Quantidade total de alternativas corretas | |
int quantidadeAlunos; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#define LIN 2 | |
#define COL 2 | |
void mostraMatriz(int (*matriz)[LIN][COL]) { | |
printf("%d\n", (*matriz)[0][1]); //retorna 2 | |
} | |
int main() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Circulo | |
* com.gsoft.Circulo | |
* | |
* Operacoes com circulo | |
* | |
* 05/03/2014 @ 12:15:20 PM | |
* Copyright (C) 2014 Gsoft do Brasil Sistemas | |
* | |
* @author Gabriel Marinho <[email protected]> |