May 29, 2013 by Matt | Posted in Coding
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
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
alias gitlines="git ls-files | xargs wc -l"
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…
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…
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…
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…