Skip to content

Instantly share code, notes, and snippets.

package com.company;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
public class GetVokal {
@iamanvesh
iamanvesh / build_continuous_data.py
Last active October 7, 2020 07:57
Quick and dirty way to build a continuous contract from monthly contracts that can be used to back-test. Rollover to the new contract at the given expiry hour/minute in your backtest.
import os
import csv
import pandas as pd
from datetime import datetime
months = {
'JAN': 1,
'FEB': 2,
'MAR': 3,
@iamanvesh
iamanvesh / vimrc
Created October 11, 2014 13:52
My vimrc
" Indent automatically depending on filetype
filetype indent on
set autoindent
" Turn on line numbering. Turn it off with "set nonu"
set number
" Set syntax on
syntax on
@iamanvesh
iamanvesh / designer.html
Created August 16, 2014 16:40
designer
<link href="../core-scaffold/core-scaffold.html" rel="import">
<link href="../core-header-panel/core-header-panel.html" rel="import">
<link href="../core-menu/core-menu.html" rel="import">
<link href="../core-item/core-item.html" rel="import">
<link href="../core-icon-button/core-icon-button.html" rel="import">
<link href="../core-toolbar/core-toolbar.html" rel="import">
<link href="../core-menu/core-submenu.html" rel="import">
<polymer-element name="my-element">