Skip to content

Instantly share code, notes, and snippets.

View waynenilsen's full-sized avatar

Wayne Nilsen waynenilsen

View GitHub Profile
@waynenilsen
waynenilsen / polo-arbitrage
Last active June 30, 2017 01:58
Poloniex arbitrage check
#!/usr/bin/env node
var https = require('https');
var fee = 0.002;
var uri = "https://poloniex.com/public?command=returnTicker";
function parse(ticker){
var pairs = [], pair, parts;
for (pair in ticker){
parts = pair.split('_');
@waynenilsen
waynenilsen / playground.rs
Created September 4, 2015 14:44 — forked from anonymous/playground.rs
Shared via Rust Playground
#[derive(Debug)]
struct Node<T> {
content : T,
parent : usize,
children : Vec<usize>,
}
#[derive(Debug)]
struct Heiarchy<T> {