Skip to content

Instantly share code, notes, and snippets.

View csquared's full-sized avatar

Chris Continanza csquared

  • ex-stripe, ex-coinbase, ex-heroku
  • Brooklyn, NY
View GitHub Profile
make
@csquared
csquared / -
Created February 14, 2014 22:11
require 'redis'
$redis = Redis.new
def pub
puts 'pub'
$redis.publish('one', 'two')
$redis.publish(:one, 'two')
#$redis.publish(:one, 'exit')
end
commit 6e98738c32e2a4975fcdbc61114f9d071d671995
Author: Chris Continanza <christopher.continanza@gmail.com>
Date: Sun Mar 16 12:42:27 2014 -0700
fix sign
diff --git a/ecdsa.cpp b/ecdsa.cpp
index ff9d534..a26ad2f 100644
--- a/ecdsa.cpp
+++ b/ecdsa.cpp
### Keybase proof
I hereby claim:
* I am csquared on github.
* I am csquared (https://keybase.io/csquared) on keybase.
* I have a public key whose fingerprint is A0A8 220E EAA2 7665 7A47 FB23 CAB1 2481 ACC6 5176
To claim this, I am signing this object:
@csquared
csquared / dataAttr.jquery.js
Created January 7, 2011 17:29
Getting javascript objects back from a #to_json call
jQuery.fn.dataAttr = function(data_attr_name) {
var data = eval('(' + this.attr("data-" + data_attr_name) + ')')
return data || {}
}
@csquared
csquared / test.clj
Created September 14, 2011 07:46
This isn't really clojure
(if-i-had-this-method
(and-this-one)
(i would-pass in data))
@csquared
csquared / test.js
Created September 15, 2011 07:21
Node.js sample
/* This is some sample Javascript */
function hello_world(event){
event.stopPropagation();
}
@csquared
csquared / hello_world.java
Created September 15, 2011 07:24
Java is fun
/* JAVAAAA */
class HelloWorld {
public static void main(String[] args){
System.out.println("Hello, world!");
}
}
@csquared
csquared / Gemfile
Created September 23, 2011 21:57
please do this when you require ruby-debug in your Gemfile
group :development do
gem 'ruby-debug', :platform => :mri_18
gem 'ruby-debug19', :platform => :mri_19
end
@csquared
csquared / building-an-addon.md
Created October 4, 2011 09:10
Austin.rb Talk Overview

Building An Addon - Top Down/Bottom up

In this talk we'll take a look at how to build a Heroku Add-On from the top down and bottom up. We'll start by going over the general design and strategy of how an add-on works. We will then see how the the kensa gem allows you to test a local add-on you can develop in any language, like Ruby. Bring your laptop and you'll walk away with a working prototype in Sinatra.

Chris is a current member of the Heroku Add-ons team and loves a good pull request.