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
#!/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('_'); |
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
#[derive(Debug)] | |
struct Node<T> { | |
content : T, | |
parent : usize, | |
children : Vec<usize>, | |
} | |
#[derive(Debug)] | |
struct Heiarchy<T> { |