Deploying a redbean app to Fly
[redbean](https://redbean.dev/) is a fascinating project - it provides a web server in a self-contained executable which you can add assets (or dyn...
306 words
|
2 minutes
Tommy's Margarita
A few years ago I decided to learn how to make some classic cocktails. It is a very rewarding hobby.
475 words
|
2 minutes
Writing pytest tests against tools written with argparse
I usually build command-line tools using [Click](https://click.palletsprojects.com/) (and my [click-app](https://github.com/simonw/click-app) cooki...
234 words
|
1 minute
Checking if something is callable or async callable in Python
I wanted a mechanism to check if a given Python object was "callable" - could be called like a function - or "async callable" - could be called usi...
230 words
|
1 minute
Asserting a dictionary is a subset of another dictionary
My [lazy approach to writing unit tests](https://simonwillison.net/2020/Feb/11/cheating-at-unit-tests-pytest-black/) means that sometimes I want to...
113 words
|
1 minute
Generating URLs to a Gmail compose window
I wanted to send out a small batch of follow-up emails for workshop attendees today, and I realized that since I have their emails in a database ta...
398 words
|
2 minutes
JavaScript date objects
A few notes on JavaScript `Date` object, based on trying to do some basic things with them in Observable notebooks.
394 words
|
2 minutes
Trying out Quarto on macOS
I decided to try out [Quarto](https://quarto.org/), the new notebook/markdown/publishing system built on Pandoc.
214 words
|
1 minute