Public Gists by amitava-basak

Gravatar
Mon Oct 26 09:02:19 -0700 2009
1
2
3
        RED="\[\033[0;31m\]"
     YELLOW="\[\033[0;33m\]"
  GREEN="\[\033[0;32m\]"
Gravatar
Thu Feb 05 09:03:31 -0800 2009
1
2
3
Slight change to make the relative time example given by DHH validate:
 
http://www.37signals.com/svn/posts/1557-javascript-makes-relative-times-compatible-with-caching
gist: 58824 Rails like JavaScript DateH...
Gravatar
Thu Feb 05 08:55:50 -0800 2009
1
2
3
var DateHelper = {
  // Takes the format of "Jan 15, 2007 15:45:00 GMT" and converts it to a relative time
  // Ruby strftime: %b %d, %Y %H:%M:%S GMT
Gravatar
Thu Feb 05 08:55:50 -0800 2009
1
2
3
var DateHelper = {
  // Takes the format of "Jan 15, 2007 15:45:00 GMT" and converts it to a relative time
  // Ruby strftime: %b %d, %Y %H:%M:%S GMT
gist: 54210 ActiveScaffold image upload...
Gravatar
Wed Jan 28 13:42:30 -0800 2009
1
2
3
class User < ActiveRecord::Base
  has_attached_file :avatar, :styles => {:thumb => '100x100>'}
end
Gravatar
Fri Jan 23 11:25:55 -0800 2009
1
2
3
# SUPER DARING APP TEMPLATE 1.0
# By Peter Cooper
 
Gravatar
Thu Jan 22 11:20:40 -0800 2009
1
2
3
#!/bin/sh
 
git filter-branch --env-filter '