Skip to content

Instantly share code, notes, and snippets.

View csquared's full-sized avatar

Chris Continanza csquared

  • GRAX (ex-stripe, ex-coinbase, ex-heroku)
  • Austin, TX
View GitHub Profile
@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.

@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 / 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 / test.js
Created September 15, 2011 07:21
Node.js sample
/* This is some sample Javascript */
function hello_world(event){
event.stopPropagation();
}
@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 / 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 || {}
}