Skip to content

Instantly share code, notes, and snippets.

View vhcandido's full-sized avatar

Victor Hugo Cândido de Oliveira vhcandido

View GitHub Profile
@vhcandido
vhcandido / tempo-tv.py
Created August 9, 2018 17:09
Estimativa de tempo de TV (em um bloco de 12m30s) para cada candidato à Presidência do Brasil nas eleições de 2018.
#!/usr/env python3
# Formatted by Black: https://github.com/ambv/black
################################################################################
# PARTIDOS E REPRESENTAÇÃO NA CÂMARA
# http://www.camara.leg.br/Internet/Deputado/bancada.asp
partidos = 'PP PODE AVANTE PT MDB PSDB DEM PR PSD PTB PROS PSB PRB PDT SD PCDOB PSC PSL PPS PSOL PATRI PV PHS REDE PPL'
partidos = partidos.split()
@vhcandido
vhcandido / README-Template.md
Created May 24, 2018 19:37 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

#property copyright ""
#property link "https://www.mql5.com"
#property version "1.00"
#include <myFunctions.mqh>
// Magic number
#define MAGIC_NUMBER 1123581321
// 5min before actual opening time
library(zoo)
library(xts)
library(chron) # xts index
library(TTR) # TA indicators
library(quantmod) # plotting
# Path to the CSV file to be read
file.path <- '../data/EURAUD.csv'
# Dates subset to be used when plotting
dates <- '2016-07::'