Skip to content

Instantly share code, notes, and snippets.

View nickpoorman's full-sized avatar
Verified

Nick Poorman nickpoorman

Verified
  • US
View GitHub Profile
@nickpoorman
nickpoorman / gist:3669240
Created September 7, 2012 20:12
Can't get attributes
define(["app",
// Libs
"backbone", "validator",
// Modules
// Plugins
"util", "plugins/jquery.cookie"
//"plugins/backbone.layoutmanager"
],
function (app, Backbone, Validator, Util, Cookie) {
@nickpoorman
nickpoorman / app.coffee
Created August 20, 2012 10:33
Express.js Backbone.js pushState router
# if the resource is not found then forward to backbone's router
app.use (req, res) ->
newUrl = req.protocol + '://' + req.get('Host') + '/#' + req.url
res.redirect newUrl
@nickpoorman
nickpoorman / Console
Created June 23, 2012 19:09
Awesome Print with Mongoid in Rails
User.all.each { |p| ap p.attributes}
@nickpoorman
nickpoorman / gist:2352433
Created April 10, 2012 16:05
Deadlock Env
>ruby -v
ruby 1.9.3p125 (2012-02-16) [i386-mingw32]
> rails -v
Rails 3.2.3