Simon Willison’s Weblog

Subscribe

Wednesday, 2nd September 2020

TIL Looping over comma-separated values in Bash — Given a file (or a process) that produces comma separated values, here's how to split those into separate variables and use them in a bash script.
TIL Using the gcloud run services list command — The `gcloud run services list` command lists your services running on Google Cloud Run:
Release dogsheep-beta 0.3 — Build a search index across content from multiple SQLite database tables and run faceted searches against it using Datasette

The “await me maybe” pattern for Python asyncio

I’ve identified a pattern for handling potentially-asynchronous callback functions in Python which I’m calling the “await me maybe” pattern. It works by letting you return a value, a callable function that returns a value OR an awaitable function that returns that value.

[... 787 words]

Tuesday, 1st September 2020
Thursday, 3rd September 2020