Skip to content

Instantly share code, notes, and snippets.

Just shillin'

Luis Buenaventura helloluis

Just shillin'
View GitHub Profile
View gist:d121d91664525f020663afc05f5f46ed
var Kraken = function(){ = ""; = "kraken";
this.balances = {};
this.initialize = function() {
var pp = PropertiesService.getScriptProperties();
View gist:6fc5150bb51a005ba0375346d6e3a3b6
var Bitstamp = function(){ = "";
this.path = "/api/";
this.balances = {};
this.initialize = function() {
var pp = PropertiesService.getScriptProperties();
this.key = pp.getProperties()['bitstamp_key'];
View bx8.sol
pragma solidity 0.4.25;
// ----------------------------------------------------------------------------
// 'BX8' token contract
// Deployed to :
// Symbol : BX8
// Name : BX8Token
// Total supply: 3888888888
// Decimals : 18
View gist:84d4424b9701d3e806a6ee52698dc823
def connect_to_ir!(path, method=:post, payload={})
uri = URI.parse("")
http =, uri.port)
http.use_ssl = true
api_key =
api_secret =
nonce =
helloluis / gist:9846306
Last active Aug 29, 2015
How to find the class distribution for Challonge Hearthstone tournaments
View gist:9846306
$(['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]) });
View gist:9502265
luis:~/sites$ cd kreyos-members/
You are using '.rvmrc', it requires trusting, it is slower and it is not compatible with other ruby managers,
you can switch to '.ruby-version' using 'rvm rvmrc to [.]ruby-version'
or ignore this warning with 'rvm rvmrc warning ignore /Users/luis/sites/kreyos-members/.rvmrc',
'.rvmrc' will continue to be the default project file in RVM 1 and RVM 2,
to ignore the warning for all files run 'rvm rvmrc warning ignore all.rvmrcs'.
Using /Users/luis/.rvm/gems/ruby-1.9.3-p545 with gemset kreyos-members
View gist:1785161
RuntimeError in SitesController#show
ERR unknown command 'hset'
Rails.root: /Users/Luis/Sites/infinitely/main
Application Trace | Framework Trace | Full Trace
redis (2.2.2) lib/redis/client.rb:47:in `call'
/Users/Luis/.rvm/gems/ruby-1.9.2-p290@infinitely/bundler/gems/rpm_contrib-694e43044d4f/lib/rpm_contrib/instrumentation/redis.rb:30:in `block in raw_call_command_with_newrelic_trace'
newrelic_rpm (3.1.2) lib/new_relic/agent/method_tracer.rb:242:in `trace_execution_scoped'
/Users/Luis/.rvm/gems/ruby-1.9.2-p290@infinitely/bundler/gems/rpm_contrib-694e43044d4f/lib/rpm_contrib/instrumentation/redis.rb:28:in `raw_call_command_with_newrelic_trace'
View gist:1319873
gem install ruby-debug19 -- -with-ruby-include=/Users/Luis/.rvm/src/ruby-1.
ruby-1.8.7-p302/ ruby-1.9.2-head/ ruby-1.9.2-p0/ ruby-1.9.2-p290/
luis-imac:main Luis$ gem install ruby-debug19 -- -with-ruby-include=/Users/Luis/.rvm/src/ruby-1.9.2-head
/Users/Luis/.rvm/rubies/ruby-1.9.2-head/bin/gem:4: warning: Insecure world writable dir /usr/local in PATH, mode 040777
Building native extensions. This could take a while...
ERROR: Error installing ruby-debug19:
ERROR: Failed to build gem native extension.
/Users/Luis/.rvm/rubies/ruby-1.9.2-head/bin/ruby extconf.rb -with-ruby-include=/Users/Luis/.rvm/src/ruby-1.9.2-head
checking for vm_core.h... no
helloluis / jQuery findClassWithRegex
Created Sep 30, 2011
Mini-plugin for selecting elements with regex instead of an actual class name
View jQuery findClassWithRegex
$.fn.findClassWithRegex = function(regex) {
var results = [];
if ($(this).attr('class').length>0 && $(this).attr('class').match(regex)) {
results.push( this );
helloluis / Slim HTML5 Boilerplate Conditional Comments
Created Aug 31, 2011
How to get HTML5 Boilerplate-style Conditional Comments Working in Slim
View Slim HTML5 Boilerplate Conditional Comments
doctype html
/[if lt IE 7]
| <html class="ie6">
/[if IE 7]
| <html class="ie7">
/[if IE 8]
| <html class="ie8">
/[if IE 9]
| <html class="ie9">
| <!--[if (gte IE 9)|!(IE)]<!--> <html> <!--<![endif]-->