Categories
Coding

Multiline Scripts in YAML

As you know from writing scripts in .gitlab-ci.yml, the YAML syntax can be a bit restrictive, and escaping characters can make your eyes bleed. I discovered a phenomenally useful feature in YAML syntax. Strings can be built with less escaping by starting the string with a  > or | operator. > takes the lines that follow and joins them with […]

Categories
Coding

Behold the Herd Immunity COVID-19 Calculator and Tutorial

We have been hearing a lot about building herd immunity against the Coronavirus, and a lot about React, a JavaScript library for building user interfaces. So we decided to combine the two to make a calculator that will help us compare the “wear a damn mask” against the “everybody gets it” scenario. This extends our […]

Categories
Coding

Adding a CDN to WordPress Multisite

It turns out that a WordPress multisite network served entirely through a CDN is tricky to get right. We tried it with Amazon CloudFront and a little bit of PHP.

Categories
Coding

A COVID-19 / Coronavirus Simulator Tutorial in JavaScript

I saw a terrific Coronavirus simulation about transmission called “Simulating an Epidemic”. If you haven’t seen it, you should watch it now: it communicates science well and answers a lot of my questions about social isolation, PPE and travel restrictions. This looked like something I would like to play with. I looked at the source […]