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
var Kraken = function(){
this.host = "https://api.kraken.com";
this.tab = "kraken";
this.balances = {};
this.initialize = function() {
var pp = PropertiesService.getScriptProperties();
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'];
pragma solidity 0.4.25;
// ----------------------------------------------------------------------------
// 'BX8' token contract
//
// Deployed to :
// Symbol : BX8
// Name : BX8Token
// Total supply: 3888888888
// Decimals : 18
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
@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]) });
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
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'
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
helloluis / jQuery findClassWithRegex
Created September 30, 2011 03:48
Mini-plugin for selecting elements with regex instead of an actual class name
$.fn.findClassWithRegex = function(regex) {
var results = [];
$(this).each(function(){
if ($(this).attr('class').length>0 && $(this).attr('class').match(regex)) {
results.push( this );
}
@helloluis
helloluis / Slim HTML5 Boilerplate Conditional Comments
Created August 31, 2011 08:52
How to get HTML5 Boilerplate-style Conditional Comments Working in Slim
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]-->