Skip to content

Instantly share code, notes, and snippets.

View vhsalazar's full-sized avatar

Victor Salazar vhsalazar

  • Sydney, Australia
View GitHub Profile
@StuMx
StuMx / streamLoader.js
Created February 27, 2012 20:56
Twitter stream using javascript.
/*
* You have to include oauth.js and sha1.js from here http://oauth.googlecode.com/svn/code/javascript/
* /
var url = "https://userstream.twitter.com/2/user.json";
var accessor = {
token: "",
tokenSecret: "",
consumerKey : "",
consumerSecret: ""
@dhh
dhh / gist:1014971
Created June 8, 2011 18:09
Use concerns to keep your models manageable
# autoload concerns
module YourApp
class Application < Rails::Application
config.autoload_paths += %W(
#{config.root}/app/controllers/concerns
#{config.root}/app/models/concerns
)
end
end