Skip to content

Instantly share code, notes, and snippets.

View bulters's full-sized avatar

Jeroen Bulters bulters

View GitHub Profile
@bulters
bulters / LICENSE.txt
Created May 27, 2011 12:00 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@bulters
bulters / Git Unstage file
Created June 30, 2010 09:07
Git alias for 'unstaging' changes
git config --global alias.unstage='reset HEAD --'
named_scope :magic, lambda {
{
:joins => "INNER JOIN airings ON airings.id=spotlights.object_id INNER JOIN episodes ON episodes.id=airings.episode_id",
:conditions => ["object_type='Airing' AND airings.ends_at < ? AND episodes.video IS NOT NULL", DateTime.now.utc],
:order => "airings.ends_at DESC",
:group => "airings.id"
}
}