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
/** | |
* Explicando expressões: | |
* | |
* (![]+[]) -> ! tem precedência em cima do concatenador "+" então ![] vira | |
* false e por conta do + vira string e o array vazio vira string | |
* vazia, tudo isso virando a string 'false' | |
* | |
* ([![]]+[][[]]) -> em [![]], ![] avalia-se como false e vira [false]. [][[]] | |
* o array mais interno converte-se para o número 0 ao passo | |
* que está sendo tratado como índice de um array vazio e |
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
// Config. by: kANN<3 | |
// | |
// | |
cl_showfps 1 | |
fps_max 125 | |
//bind de compras | |
clear | |
echo "+=====================================================+" | |
echo "| NUM | / | * | - |" |
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
-- ----------------------------------------------------------------------------- | |
-- View que retona o id do cliente e a quantidade de solicitações que este | |
-- cliente tem | |
-- ----------------------------------------------------------------------------- | |
CREATE VIEW vw_count_compras_clientes AS | |
SELECT | |
-- id do cliente | |
id_cliente, | |
-- conta a quantidade de solicitações do cliente | |
count(id_solicitacao) as qtd_sol |
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
procedure TFmRelChequesEmissao.FormCreate(Sender: TObject); | |
begin | |
with IbqChequeEmissao do | |
begin | |
Active := False; | |
With FmReports do | |
begin | |
ParamByName('st').Value := DtpInicio.Date; | |
ParamByName('ed').Value := DtpFim.Date; | |
end; |
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
/** | |
* | |
* Grafos com lista de adjacências | |
* | |
* Vetor que contém somente as arestas existentes (com alocação dinâmica) | |
* | |
* @Author: Reinaldo Antonio Camargo Rauch | |
* @Date: 2014-10-22 19:22:46 | |
* @Last Modified by: reinaldo | |
* @Last Modified time: 2014-11-05 20:15:07 |
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
/* | |
* @Author: reinaldo | |
* @Date: 2014-10-01 19:37:25 | |
* @Last Modified by: reinaldo | |
* @Last Modified time: 2014-10-01 20:05:33 | |
*/ | |
#include <stdio.h> | |
#define TAM 10 |
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 <string.h> | |
#include <stdlib.h> | |
#define TAM 10 | |
int array[TAM]; | |
/** |
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
#!/bin/bash | |
# @Author: Reinaldo Antonio Camargo Rauch <reinaldorauch@gmail.com> | |
# @Date: 2014-08-26 13:02:39 | |
# @Last Modified by: Reinaldo Antonio Camargo Rauch | |
# @Last Modified time: 2014-08-26 14:32:59 | |
# | |
# Script para extrair e renomear as pastas de arquivos baixados do nipponsei | |
# |
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 TFmPrinc.validaCartaoCredito(cn: String): ShortInt; | |
var | |
i, j, Sum : Integer; | |
begin | |
if (Length(cn) > 20) OR (Length(cn) < 15) then | |
Result := -1 | |
else | |
try | |
Sum := 0; |
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 doSomeStuff(cb) { | |
// Some Stuff | |
return cb(); | |
} | |
doSomeStuff(function onSomeStuffHandler() { |