Public Gists by jamie

gist: 70952 My base fish config files
Gravatar
Thu Feb 26 08:58:38 -0800 2009
1
2
3
set PATH ~/bin $PATH
if test -d /opt/local/lib/mysql5/bin/
  # include OSX mysql from macports
Gravatar
Mon Feb 16 10:52:16 -0800 2009
1
2
3
# # of iterations = 10000
# Rehearsal -------------------------------------------------------
# null_time 0.000000 0.000000 0.000000 ( 0.002980)
Gravatar
Sat Jan 31 09:51:41 -0800 2009
1
2
3
Using ~ instead of = for the content catch to
 preserve whitespace indentation levels (since
 I'm using preformatted code blocks)
Gravatar
Wed Aug 27 08:41:24 -0700 2008
1
2
3
def star_sign
  # 1980 is a leap year, so we're safe for Feb 29 people
  # date ranges are according to wikipedia
gist: 7324 date_field helper for merb
Gravatar
Tue Aug 26 12:30:06 -0700 2008
1
2
3
# Originally from http://www.benlog.org/2008/6/29/bare-bones-date-picker-for-merb
# Modified for new Merb 0.9.6 helpers
module Merb::Helpers::Form
gist: 4420 refactor iteration to use map
Gravatar
Thu Aug 07 07:55:44 -0700 2008
1
2
3
def following_pages
  twitter_user.friends_count.to_i / 100 + 1
end