Skip to content

Instantly share code, notes, and snippets.

View helloluis's full-sized avatar
💭
Just shillin'

Luis Buenaventura helloluis

💭
Just shillin'
View GitHub Profile
@helloluis
helloluis / gist:9846306
Last active August 29, 2015 13:57
How to find the class distribution for Challonge Hearthstone tournaments
$(['druid','hunter','mage_13','rogue','warlock','warrior','priest','paladin','shaman']).map(function(){ return [[ ""+this, $(".round1").find("img[src*='" + this + "']").length ]]; }).sort(function(a,b){ return b[1]-a[1]; }).each(function(){ console.log(this[0],this[1]) });
def connect_to_ir!(path, method=:post, payload={})
uri = URI.parse("https://api.independentreserve.com/Private")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
api_key = App.services.independentreserve.api_key
api_secret = App.services.independentreserve.api_secret
nonce = Time.now.to_i
pragma solidity 0.4.25;
// ----------------------------------------------------------------------------
// 'BX8' token contract
//
// Deployed to :
// Symbol : BX8
// Name : BX8Token
// Total supply: 3888888888
// Decimals : 18
var Bitstamp = function(){
this.host = "https://www.bitstamp.net";
this.path = "/api/";
this.balances = {};
this.initialize = function() {
var pp = PropertiesService.getScriptProperties();
this.key = pp.getProperties()['bitstamp_key'];
var Kraken = function(){
this.host = "https://api.kraken.com";
this.tab = "kraken";
this.balances = {};
this.initialize = function() {
var pp = PropertiesService.getScriptProperties();