Little bits of code for others to use.
A little script for creating an example of Benford's Law - along with a plot including a flying unicorn. There's a version with pink bars and one with rainbow bars.
A story about the eery behaviour of columns in a dataframe when you don't use enough square brackets. Read the post here.
Inspired by Fagerland (2012), I did a series of simulations comparing a t-test and a Wilcoxon rank sum test under various conditions were assumptions for the t-test are violated. You can find a summary of the simulation results here.
Some little functions I wrote for tracking working time and importantly, the number of cakes at work.