Skip to content

Instantly share code, notes, and snippets.

View kingsidharth's full-sized avatar
💭
I may be slow to respond.

King Sidharth kingsidharth

💭
I may be slow to respond.
View GitHub Profile
@utkarshkukreti
utkarshkukreti / Rakefile
Created April 14, 2011 15:32
Watch a directory for changes on *.haml files, and automatically compile them to *.html
# Save as Rakefile, and run `rake watch`
def recompile(base, relative)
haml = File.join(base, relative)
html = File.join(base, relative.gsub(/\.haml$/, '.html'))
print ">>> Change detected to #{relative} >> "
system "haml", haml, html
puts "Compiled <<<"
end
desc "Watch HAML files for changes"
@erikh
erikh / hack.sh
Created March 31, 2012 07:02 — forked from DAddYE/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#