This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git remote add github [EMAIL PROTECTED]:myaccount/myapp.git | |
git remote add heroku [EMAIL PROTECTED]:myapp.git | |
Then you can do “git push heroku” and “git push github”, or pull, or | |
From: http://blog.mindtonic.net/using-github-and-heroku-together |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(Date.parse("2010-12-03")-Date.today).days |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
model.methods.sort.each{|m| puts m}; nil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Convience method for ordanalized_date_string | |
def ods( date, day_of_week=false ) | |
return ordanalized_date_string( date, day_of_week ) | |
end | |
# Returns date string in format '29th December, 2009' i.e. UK style | |
# use instead of date.to_s( %stuff %rndstuff %another ) | |
def ordanalized_date_string( date, day_of_week=false ) | |
date_str = "#{date.day.ordinalize} %B, %Y" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this isn't a test |
NewerOlder