The New York Times’ fancy new prototype site.
Week of the Year Alfred Extension
It probably does not come as a shock that at the Post, all of our code is stored in git. Everyone seems to have a particular philosophy about how to manage where features are developed, where production code is kept, how often the two are merged, etc etc.
One thing we do is keep our production code in branches named with the following format: {Year}.{Week of Year}. So, for example, this week’s branch is 2013.7.
I had a lot of problems getting behind this strategy for one simple reason: who can remember what the current week of the year is? But the system was not going away.
After almost 7 months of way too many Google searches for “current week of the year”, I finally got smart, and wrote an Alfred extension that would display the current week of the year in the Notification center.
Turns out, it was aggressively easy. The entire code involved in the whole process is this:
ruby -e 'puts Time.now.strftime("%V")'
Now, through the magic of Dropbox, I’m going to share it with the internet. You can download the extension here.
