Show records created in the last 5 hours (requires squeel and activesupport):
Model.where{created_at > 5.hours.ago}.map(&:name)
Show records created in the last 5 hours (requires squeel and activesupport):
Model.where{created_at > 5.hours.ago}.map(&:name)
# secure alphanumeric password generation in a bash function | |
# moved to https://github.com/qrohlf/dotfiles/blob/master/functions/gimmepassword.sh |
# fancy git/heroku deployment script | |
# moved to https://github.com/qrohlf/dotfiles/blob/master/functions/booyah.sh |
sudo killall -HUP mDNSResponder |
(from http://www.macgasm.net/2011/05/23/disable-dropshadow-mac-os-window-screenshots/)
defaults write com.apple.screencapture disable-shadow -bool true
killall SystemUIServer
heroku pg:reset --confirm appname DATABASE_URL | |
heroku run rake db:migrate && rake db:seed |
sudo chmod a+w /usr/X11/var/cache/fontconfig |
##Rad 2d Clipping To try it out:
git clone https://gist.github.com/7345132.git
cd 7345132
acom Lab3.c Drawframework.c && ./a.out better_house.xy
Then click a convex clipping window with your mouse in a clockwise direction.
Click the red square in the upper right corner to finish the polygon and clip the house.
puts "dlroW olleH" |
one = 1 | |
two = one+one | |
five = two*two+one | |
ten = five*two | |
hw = [ten*(five+two)+two, | |
hundred1 = ten*ten+one, | |
l = ten*ten+ten-two, | |
l, | |
hundred11 = hundred1+ten, | |
ten*two+ten+two, |