Referências sobre adicionar checksum em mensagens http
This file contains 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
(async() => { | |
const jsonComOsRegistros = []; | |
const arrayComAsRespostasDaPrimeiraFuncao = await Promise.all(jsonComOsRegistro.map(primeiraFuncaoQueRetornaPromise) | |
const arrayComAsRespostasDaSegundaFuncao = await Promise.all(jsonComOsRegistros.map(segundaFuncaoQueRetornaPromise) | |
})(); |
This file contains 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
{ | |
"mysql": "mysql://root:@localhost/passe_livre_fixer", | |
"credenciais": { | |
"prefeitura": "Credenciais Prefeitura", | |
"vcg": "Credenciais VCG" | |
}, | |
"urls": { | |
"prefeitura": { | |
"relatorio": "http://intranet.prefeitura/blabla", | |
"autenticacao": "http://intranet.prefeitura/blabla" |
This file contains 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
$if2(%albumartist%,%artist%)/[$if(%date%,$left(%date%,4))][$if2($if($inmulti(%releasetype%,single),Single,),$if($inmulti(%releasetype%,compilation),Compilation),Album)] %album%/$if($gt(%totaldiscs%,1),$num(%discnumber%,2)) $num(%tracknumber%,2) %title% |
This file contains 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 (argument) { | |
var mysql = require('mysql'); | |
var db = mysql.createConnection('mysql://root:amigen@localhost/bestuse_main'); | |
db.query('SELECT * FROM customers', function (err, res) { | |
if (err) { throw err; } | |
for (var i = 0; i < res.length; i++) { | |
console.log(res[i].orgname); |
This file contains 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
/** | |
* Função para imprimir um array de 2 dimensões e de inteiros | |
* @param matriz A matriz à ser imprimida | |
* @param x tamanho de colunas da matriz | |
* @param y tamanho de linhas da matriz | |
*/ | |
void imprime_matriz_int(int matriz[][4], int x, int y) { | |
int i, j; | |
// itera sobre as colunas da matriz |
This file contains 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> | |
#define ITERACOES 10000 | |
double calcPi() { | |
long int a = 1, b = 2; | |
double result = 1; | |
for (int i = 0; i < ITERACOES; i++) |
This file contains 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
data Tree a = EmptyTree | Node a (Tree a) (Tree a) deriving (Show) | |
treeInsert :: (Ord a) => a -> Tree a -> Tree a | |
treeInsert x EmptyTree = Node x EmptyTree EmptyTree | |
treeInsert x (Node a left right) | |
| x == a = Node x left right | |
| x < a = Node a (treeInsert x left) right | |
| x > a = Node a left (treeInsert x right) | |
treeElement :: (Ord a) => a -> Tree a -> Bool |