Monthly Archives: May 2013

Find the Number of Lines in a Git Repository

Want to figure out how many lines of code are in your Git repository? I’ve had an alias in my .bashrc file for ages that does just that.

git ls-files | xargs wc -l

It uses git ls-files to generate a list of files, which it then passes it to the wc command, which generates word and character count statistics (the “l” flag makes it count lines).

Obviously the line is a bit of a mouthful (handful?). So you can create an easier alias, like “gitlines” and put it in your .bashrc file.

alias gitlines="git ls-files | xargs wc -l"

WordPress 4.0 Would Be a Good Chance for a Rewrite

It’s no secret that the WordPress codebase is a mess. It seems that not a week goes by without some blogger publishing a post criticizing it. Unfortunately, fixing it is no simple matter. One of the goals the WordPress project holds is to maintain…

CSS Zen Garden Returns

It’s been ten years since CSS Zen Garden launched with its goal to excite and inspire people to build creative designs with the much more limited tools CSS offered at the time. A decade later, it’s back. Given how the CSS landscape has changed…

Adobe Kills Creative Suite, Demands Monthly Subscription

At the Adobe MAX conference this week, Adobe announced that they will be discontinuing their Creative Suite products (Photoshop, Illustrator, etc.) in favor of their subscription-based “Creative Cloud” service. Instead of purchasing the software outright, and upgrading at your leisure, the new system involves…


How IMDB’s Speedy Search Suggestions Work

If you type a few letters into the search field over at the Internet Movie Database, you might notice how fast it is. That’s because they’re not served dynamically from their primary servers. IMDB, instead, serves the JSON data for search suggestions from a…