ones zeros majors and minors: esoteric adventures in solipsism, by chris wanstrath.
Link: ozmm.org
What if my GitHub repository is corrupted or deleted? Don’t Panic! Because of the distributed nature of git, everyone always has a local full copy of the repository, complete with history. Any of your repositories, assuming they have been kept up to date, can be uploaded to the GitHub...
→ try() 26 February 2008 This is something we’re using on GitHub that I really wish I started using sooner. For lack of a better name, it’s called try() . It works like this: def remove_email ( email ) emails . find_by_email ( email ) . try ( :destroy ) end Another example: file_type ...
→ Slightly Obtrusive JavaScript 31 May 2010 There are good things and bad things about "Unobtrustive JavaScript." One bad thing: it's hard to tell what JavaScript is touching an element. Idea: Only ever use classes and ids prefix with js- when touching the DOM with JavaScript. For exa...
A Hurl (in Redis) is a JSON object describing an HTTP request. Its key is the SHA1 of its value. This is convenient because it means we won't store duplicate values - we use Redis' SETNX command to only save the value if its key doesn't already exist - and probably won't get collisions.
I really love when checkbox labels are done properly. To see what I mean click on this checkbox's text label ("Click Me!"): Click Me! <input type="checkbox"> Click Me! Nothing happened, right? Right. Now click on this checkbox's text label: Click Me! <label><input type="checkbox"> Cli...