Public Gists by fannar

gist: 66069 Term prompt
Gravatar
Tue Feb 17 15:38:00 -0800 2009
1
2
3
# colored prompt, with git support
PS1='\[\033[38m\]\u@\h \[\033[94m\]\W\[\033[95m\]$(__git_ps1)\[\033[37m\]$\[\033
[00m\] '
Gravatar
Wed Feb 11 14:23:15 -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
Wed Feb 04 08:50:03 -0800 2009
1
2
3
// Examples:
//
// HTML:
Gravatar
Wed Jan 21 14:52:55 -0800 2009
1
2
3
# Examples of Nesting Associated Attributes
# This is a look at the various ways to set associated attributes through
# nested parameters. For example, let's say Project has_many :tasks and
Gravatar
Mon Jan 12 13:58:21 -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: