Skip to content

Instantly share code, notes, and snippets.

View caloni's full-sized avatar

Wanderley Caloni caloni

View GitHub Profile
#
# This script converts a csv file with 1 min candles from stock market to
# inserts into a database from several tables with different frequencies.
#
# author Wanderley Caloni <wanderley.caloni@gmail.com>
# date 2020-06
#
function print_insert(table, Timestamp, OpenPrice, HighPrice, LowPrice, ClosePrice, TradeCount, Volume)
{
#include <cstring>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <limits>
#include <vector>
using namespace std;
void insert_new_element(vector<int>& a, size_t new_element)
/** Interpreta argumentos da linha de comando com suporte a arrays.
@author Wanderley Caloni <wanderley.caloni@intelitrader.com.br>
@date 2020-08
*/
#include <stdlib.h>
#include <string.h>
const char** GetArgArray(char* argv[], const char* arg)
{
import chess.pgn
import io
import sys
import urllib.request
def getpgn(path):
if path.find("http") == 0:
response = urllib.request.urlopen(path)
data = response.read()
text = data.decode('utf-8')
commit 56f510... (tag: 1.49)
Author: caloni <caloni@desenv06x>
Date: Mon Apr 21 03:26:50 2008 -0300
Corrigido bug na encriptacao por Blowfish em assembly.
O problema ocorria por causa da inversao desnecessaria do iv, e existia
apenas na funcao de encriptacao (escritas no disco), funcionando
normalmente, portanto, na desencriptacao (leituras no disco).
#include <boost/iostreams/device/mapped_file.hpp>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <memory>
#include <set>
#include <sstream>
#include <string>
#include <iostream>
#include <windows.h>
#pragma comment(lib, "user32")
int main()
{
if( ! SetConsoleDisplayMode(GetStdHandle(STD_OUTPUT_HANDLE), CONSOLE_FULLSCREEN_MODE | CONSOLE_WINDOWED_MODE, NULL) )
{
// Se falhas com GLE 120 (função não suportada) usar função abaixo.
#
# This script get information from IMDB and write to a data file or print
# a summary from the movie/series used as a template publication.
#
# author Wanderley Caloni <wanderley.caloni@gmail.com>
# date 2020-06
#
import sys
from imdb import IMDb
#
# This script converts a csv file with 1 min candles from stock market to
# inserts into a database from several tables with different frequencies.
#
# author Wanderley Caloni <wanderley.caloni@gmail.com>
# date 2020-06
#
function print_insert(table, Timestamp, OpenPrice, HighPrice, LowPrice, ClosePrice, TradeCount, Volume)
{
#include <cstring>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <limits>
#include <vector>
using namespace std;
void insert_new_element(vector<int>& a, size_t new_element)