Profile cover photo
Profile photo
willem t
38 followers
38 followers
About
Posts

Post has attachment
Using docopt with C
This guide will help you use docopt to add option parsing to your C project. Steps Write a file called USAGE using the docopt standard . Example: pearldb - a key value server Usage:   pearldb [--daemonize]   pearldb --version   pearldb --help Options:   -d ...
Add a comment...

Post has attachment
Ban the > operator
Free your mind and ban the > operator from your source code.  Instead of using  >  you can swap the two comparators so that all your conditionals only use  <  or  <= Before:   if (balance > deposit) After:  if (deposit < balance)  Here are 3 reasons why thi...
Add a comment...

Post has attachment
Top 10 most commonly used NZ road names
This is actually a top 11. It just so happens to be that Victoria and Grey Street tied for 10th place. The NZ Government has a lot of data available on roads in  http://data.linz.govt.nz . Quite interesting, I'm going to try to post more visualisations in t...
Add a comment...

Post has attachment
If you write code, turn off your editor's scroll bars and line numbers now
I like using Gvim for writing code. These are my favorite settings: set number! " Remove line numbers set guioptions! " Remove scrollbar, tool bar, and menu bar This results in an editor window without scrollbars and line numbers. You don't need line number...
Add a comment...

Post has attachment
Māori bird names
I wanted to understand the distribution of the first letter of Māori bird names against the Māori alphabet better. So I made this plot: Looks like K is the clear winner. Happy 2014! Sources: http://www.doc.govt.nz/conservation/native-animals/birds/birds-a-z...
Māori bird names
Māori bird names
willemthiart.com
Add a comment...
Wait while more posts are being loaded