I gave a presentation on rewriting software at the London Ruby User Group in September. Unfortunately there is no video, but here are the slides.
I read the original bitcoin whitepaper today, and I wanted to play around with some of the ideas in it. So, here is a toy project in Ruby to do just that. I’m not going to go into the mathematical stuff about hash functions - I’ll just handwave all that and assume it’s being taken care of. … Continue reading Toyblocks: Playing with Block(chain)s – Part 1
Whenever I’m mocking up a sample web page, I inevitably end up doing something like this; Create a line; <li id="1">This is item 1</li> Copy it a bunch of times; <li id="1">This is item 1</li> <li id="1">This is item 1</li> <li id="1">This is item 1</li> <li id="1">This is item 1</li> <li id="1">This is item 1</li> … Continue reading Vim – Incrementing a column of numbers
The other day, I discovered that vim has an “encryption” mode. In this mode, your file is encrypted whenever it is written to disk, and decrypted whenever it’s read back (this also applies to any temporary swap files). I used to use the gnupg plugin for this, but it’s pretty tedious to have to type a long … Continue reading Keeping secrets with Vim encryption
I gave a presentation on Elixir at the London Ruby User Group in March. here is the video. here are the slides.
I use tmux panes all the time. I’m always editing at least one set of source code in one pane, running tests in another and probably running servers and consoles in yet more. This is all great until I plug my laptop into my external monitor, or unplug it. Going from one physical screen to two, or … Continue reading Dispatch Tmux panes like a boss
In part 1 we created a build system that lets us write an application using React.js components. Now let’s extend that. Add a test framework The first thing I want is to be able to write tests for the application, so I’m going to need a test library and a way of running the tests. I’m going … Continue reading Redux Demo. App. part 2