Public Gists by evanwalsh

Gravatar
Sat Oct 10 09:31:31 -0700 2009
1
2
3
http://www.myspace.com/wearewhitenoise
http://djearworm.com/
http://hawkinsmashups.blogspot.com/
Gravatar
Tue May 05 10:38:17 -0700 2009
1
2
3
---
Title: Insomnia
 
Gravatar
Sun May 03 11:28:09 -0700 2009
1
2
3
# This helper method will either generate a regular link => <a href="/whatever">Whatever</a>
# or it will generate a link with a "current class => <a href="/whatever" class="current">Whatever</a>
# Easy, huh?
Gravatar
Sat May 02 20:57:35 -0700 2009
1
2
3
// C IS FOR COOKIE originally by Mislav Marohnić ( http://mislav.uniqpath.com/js/c-is-for-cookie/ )
// chopped and spliced by Evan Walsh
var Cookie = {
Gravatar
Wed Jan 07 12:54:20 -0800 2009
1
2
3
# 1) Point *.example.com in your DNS setup to your server.
#
# 2) Setup an Apache vhost to catch the star pointer:
Gravatar
Tue Dec 30 19:22:11 -0800 2008
1
2
3
#!/bin/bash
# Let's get a git repo on a host that doesn't have it
curl -L http://github.com/$1/$2/tarball/master -o $1-$2.tar.gz > /dev/null
Gravatar
Wed Dec 10 18:50:19 -0800 2008
1
2
3
# Put this in routes.rb at the very bottom (right before end)
 
map.error '*path', :controller => 'application', :action => 'rescue_404'
Gravatar
Mon Dec 08 19:32:46 -0800 2008
1
2
# A model for Ruby on Rails that gets settings from a DB
# And it caches them! Success!