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
# | |
# 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) | |
{ |
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 <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) |
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
/** 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) | |
{ |
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
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') |
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
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). |
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 <boost/iostreams/device/mapped_file.hpp> | |
#include <fstream> | |
#include <iomanip> | |
#include <iostream> | |
#include <map> | |
#include <memory> | |
#include <set> | |
#include <sstream> | |
#include <string> |
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 <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 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
# | |
# 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 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
# | |
# 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) | |
{ |
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 <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) |