ones zeros majors and minors

git msg


~2 years ago by Chris Wanstrath on ones zeros majors and minors.
You can make an empty commit with just a message. Kind of like git-tweeting. Add this to .gitconfig: [alias] msg = commit --allow-empty -m Then add...

Static Sites with Mustache


~2 years ago by Chris Wanstrath on ones zeros majors and minors.
I just spruced up http://defunkt.github.com/ by removing most of the text on the home page and adding two new pages: projects and contact. While the two...

:nth-child


~2 years ago by Chris Wanstrath on ones zeros majors and minors.
For my new projects page, I wanted the background color of each box to change into one of six pre-selected colors on hover. I also wanted an arbitrary number...

CakePHP on GitHub


~2 years ago by Chris Wanstrath on ones zeros majors and minors.
CakePHP is now on GitHub. This tickles me because I created and published my first open source project on Sourceforge, Spyc in an attempt to get it included...

repl


~2 years ago by Chris Wanstrath on ones zeros majors and minors.
I've been playing with redis-cli a lot this year and at one point thought, "This would be great as a simple little shell." So, repl. It turns any basic...

URLs in Ruby


~2 years ago by Chris Wanstrath on ones zeros majors and minors.
Last year I showed you how to turn Ruby into Java. This year I want to show you how to write URLs in Ruby. Let's have them return their body, shall weFor...

Cache Bang


~2 years ago by Chris Wanstrath on ones zeros majors and minors.
My favorite caching idiom: def rankings @rankings ||= rankings! end def rankings! # compute expensive rankings end Smoke 'em if you got 'em....

return early


~2 years ago by Chris Wanstrath on ones zeros majors and minors.
I often see code like this: def logger unless @logger @logger = Logger.new(STDOUT) @logger.level = Logger::WARN end @logger end What...

2009 Open Source Top Ten


~2 years ago by Chris Wanstrath on ones zeros majors and minors.
This was an amazing year for open source software. In alphabetical order, here are my favorite releases of 2009. BERT Beyond playing a massive role in...

Chrome Error Pages


~2 years ago by Chris Wanstrath on ones zeros majors and minors.
Why so many different styles? ...