Category: code


  • Playdate 1

    ,

    Installing the Playdate SDK, compiling a Lua script, and testing in the Simulator

  • Lately we’ve been using the Octopus Agile electricity tariff* to cut our energy bills. As we both work (mostly) from home, using electricity during non-peak periods – AKA procrastinating by doing the laundry – is easy, so it’s been saving us money. There are loads of ways to keep track of the tariff rates –…

  • Some code to generate a Peloton resistance value from the JTX Cyclo Studio v5 bike

  • Given the current bin-fire state of Twitter it seems entirely reasonable that everyone I know there is building a survivalist-style-bunker on Mastodon. But there’s a pretty immediate roadblock that faces every person trying to set up a new account: which server to choose? While Twitter is monolithic – one site, one account, one @name –…

  • I found it surprisingly hard to generate valid JWT tokens per this documentation, and kept getting a 401. Here’s some working code.

  • So long, and thanks for all the kittens

    UPDATE FEB 2024 – given a certain ex-President’s regrettable failure to Just Fuck Off, MAKA is back in the Chrome Store again.

  • It’s easy to create single In App Purchases via iTunes Connect – but if you want to add tens or hundreds, here’s how to upload them in bulk using Transporter v2.1.x on Mac.

  • In this godawful year of all godawful years, it’s good to keep an eye on who’s trying to sell what to you, why, and for how much. Facebook’s Ad Library API lets you see the detail – here’s how to access it.

  • I joined Twitter in January 2009 for what might not have been the best of reasons – I was being miserable about it on BBC Radio, and thought I should at least make an effort to try the thing I was being professionally miserable about – and, somehow, have kept using it ever since. But,…