Skip to content

Instantly share code, notes, and snippets.

@gavincyi
gavincyi / bj.py
Last active August 29, 2015 14:25
bj
#!/usr/bin/python
import random
import os
from collections import deque
st1 = {}
st2 = {}
st3 = {}
st4 = {}
@gavincyi
gavincyi / st1
Created July 29, 2015 03:16
st1
id,deal2,deal3,deal4,deal5,deal6,deal7,deal8,deal9,deal10,deal1
d1,S,S,S,S,S,S,S,S,S,S
d2,S,S,S,S,S,S,S,S,S,S
d3,S,S,S,S,S,S,S,S,S,S
d4,S,S,S,S,S,S,S,S,S,S
d5,S,S,S,S,S,S,S,S,S,S
d6,S,S,S,S,S,S,S,S,S,S
d7,S,S,S,S,S,S,S,S,S,S
d8,S,S,S,S,S,S,S,S,S,S
d9,S,S,S,S,S,S,S,S,S,S
@gavincyi
gavincyi / LinuxEnvironment.txt
Last active March 23, 2016 00:03
Linux environment installation
# Install development package
sudo yum groupinstall 'Development Tools'
# Set g++ compiler
sudo dd if=/dev/zero of=/swapfile bs=64M count=16
# Install vim
sudo yum install vim
# Create folders
@gavincyi
gavincyi / PipInstall.txt
Created March 22, 2016 23:31
List of python packages for data analysis
pip3 install jupyter
pip3 install numpy
pip3 install pandas
pip3 install scipy
@gavincyi
gavincyi / FreeMemory
Last active March 22, 2016 23:40
Free memory
free
dd if=/dev/zero of=/var/swap.img bs=1024k count=1000
mkswap /var/swap.img
swapon /var/swap.img
free
@gavincyi
gavincyi / p4 grep
Created June 1, 2016 01:57
p4 grep
p4 dirs //depot/MMA/interfaces/"*" | sed 's/$/\/.../' | xargs p4 grep -e SimIOCMarketRoutes
@gavincyi
gavincyi / pre-push.sh
Created August 4, 2016 05:24 — forked from vlucas/pre-push.sh
Prevent Pushes Directly to Master
#!/bin/bash
# @link https://gist.github.com/mattscilipoti/8424018
#
# Called by "git push" after it has checked the remote status,
# but before anything has been pushed.
#
# If this script exits with a non-zero status nothing will be pushed.
#
# Steps to install, from the root directory of your repo...
// you can use includes, for example:
#include <algorithm>
using namespace std;
#define vii vector<pair<int, int>>
#define pii pair<int, int>
#define g0( a ) get<0>( a )
#define g1( a ) get<1>( a )
int solution1(vector<int> &A, vector<int> &B, vector<int> &C) {
// write your code in C++11 (g++ 4.8.2)
// you can use includes, for example:
#include <algorithm>
#include <string>
#include <iostream>
using namespace std;
#define vii vector<pair<int, int>>
#define pii pair<int, int>
#define g0( a ) get<0>( a )
#define g1( a ) get<1>( a )

Bitcoin Algo Trading Team

This one page is to cover the team objective and tasks.

Objective

  • Create an automatic trading system on market making and arbitrage strategies

  • Create a legal funding pool mechanism for funding and profit allocation