I hereby claim:
- I am oliveiraev on github.
- I am oliveiraev (https://keybase.io/oliveiraev) on keybase.
- I have a public key ASC7gWebPQaXflpt5quGwBmSH_cloq_ice6D7P4TwNFxhgo
To claim this, I am signing this object:
function validaStatusRequest(mensagem) { | |
const checks = { | |
'SALDO INSUFICIENTE': [ | |
'insuficiente', | |
], | |
'CASHBACK NÃO ENCONTRADO': [ | |
'cashback não encontrado', | |
], | |
'CASHBACK JÁ CONSUMIDO': [ | |
'cashback já consumido', |
<?php | |
/** | |
* Calcula a participação total de cada contribuinte em uma vaquinha | |
* a partir de suas contribuições iniciais | |
* | |
* @param float $total O valor total da vaquinha | |
* @param float[] $iniciais A parcela inicial de cada contribuinte | |
* @return float[] A parcela final de cada contribuinte | |
*/ |
<?php | |
$curl = curl_init('https://www.tibia.com/community/?subtopic=killstatistics'); | |
curl_setopt_array($curl, array( | |
CURLOPT_RETURNTRANSFER => true, | |
CURLOPT_ENCODING => 'utf-8', | |
CURLOPT_FOLLOWLOCATION => true, | |
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, | |
CURLOPT_USERAGENT => 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36', |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env /bin/bash | |
set -e | |
function writeHeader () { | |
python3 - ${1} <<EOF | |
# -*- coding: utf-8 -*- | |
import sys | |
import os |
# -*- coding: utf-8 -*- | |
u"""Imprimidor de numeral ordinal.""" | |
import sys | |
UNITS = [ | |
'', | |
'primeiro', |
" Utiliza a área de transferência do sistema | |
set clipboard=unnamed,unnamedplus | |
" Navegação por teclas direcionais | |
noremap <UP> k | |
noremap <C-UP> ( | |
noremap <RIGHT> l | |
noremap <C-RIGHT> E | |
noremap <DOWN> j | |
noremap <C-DOWN> ) |
# -*- coding: utf-8 -*- | |
""" | |
Adiciona períodos a datas | |
""" | |
import datetime | |
DAY = "1" | |
WEEK = "7" | |
MONTH = "30" |
#!/usr/bin/env node | |
/** | |
* @name JSON Prettifier | |
* @summary Given an input (filename or stdin), prints out it space-indented | |
* @license [LGPLv3]{@link https://www.gnu.org/licenses/lgpl-3.0.txt} | |
* @version 0.0.1a | |
* | |
*/ | |
(function () { | |
"use strict"; |
/** | |
* Convert Jasmine suite into parseable CasperJS test suite. | |
*/ | |
casper.parseJasmineTests = (function (casper) { | |
"use strict"; | |
/** | |
* Build a structure from Jasmine test results. | |
* | |
* Each spec generates an object with two keys: specs and tests. |