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
$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
{ | |
"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
(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
export const login = async ({ commit }, creds) => { | |
try { | |
const user = await firebase.auth().signInWithEmailAndPassword(creds.email, creds.password) | |
commit(types.AUTH_SET_USER, user.uid); | |
return { | |
"success": true, | |
"data": user | |
} | |
} catch (error) { | |
return { |
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
<table style="border: 1px solid #000; border-collapse: collapse; padding: 10px;"> | |
<thead> | |
<tr> | |
<th style="border: 1px solid #000;" colspan="2">Legenda</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> | |
<td style="border: 1px solid #000;"><span style="background-color: red; display: block; height: 50px; width: 50px;"></span></td> | |
<td style="border: 1px solid #000;">Terminal Central - Bairro</td> |
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
Mat invertImage(Mat image) { | |
Vec3b p; | |
for (int i = 0; i < image.rows; ++i) | |
{ | |
for (int j = 0; j < image.cols; ++j) | |
{ | |
p = image.at<Vec3b>(i, j); | |
image.at<Vec3b>(i, j)[0] = 255 - p[0]; | |
image.at<Vec3b>(i, j)[1] = 255 - p[1]; |
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
const Promise = require('bluebird'); // usado para rodar o map em sequência para não sobrecarregar o db | |
/** | |
* Converte a chamada da conexão para realizar query para usar promise | |
*/ | |
function mysqlQuery(conn, sql, params) { | |
return new Promise((resolve, reject) => { | |
conn.query(sql, params, (err, result) => { | |
if (err) return reject(err); | |
resolve(result); |