Posts
-
Running typescript in Jupyter notebooks with deno
I started this post to keep track of the process, thinking it was going to be a slog. Instead it took me all of 2 minutes and It Just Works. Mind. Blown.
-
Pygraphviz Woes on M1 Mac: Docker to the Rescue
I was trying to install pygraphviz on my M1 laptop using pip, but I found it impossible. Luckily the Dev Container VSCode extension allows me to use it with docker.
-
Using GH to generate a new repo
gh is a lovely CLI tool from GitHub that lets you manage your repos from Terminal, including downloading license and .gitignore files.
-
Clearing commands list, and other tales of bash history
Clearing the command history is good practice when, for example, one has mistakenly pasted sensitive info.
❯ history -c
will do the trick. More details inside. -
A Clasp template for local Google Apps Script projects, using copier
It is possible to develop Google Apps Script projects locally, on your machine, in Typescript, and sync them with Drive. Excited? Don't be. I am still not sure it's a good idea. Anyhow, here's a starter project using Python's Copier
-
Migrating My Blog to Astro
I built this site with SvelteKit before it was stable, hoping it wouldn't change too much. How naive of me. Of course it did. Faced with the prospect of rebuilding it from scratch, I decided I'd rather try something new. Enter Astro
-
History of Disco and Dance Music: a Jupyter notebook
I wanted to see how well OpenAI's ChatGPT would work for teaching, so I asked it to design a Jupyter course. The first assignment it gave me was to explore the history of disco and dance music. I need to use both text and images to describe the key developments and important figures in the genre.
-
Deleting tweets and likes from twitter
Thanks to Elon Musk, it's now socially acceptable for developers to ditch their Twitter accounts. While I'm keeping mine to be able to read long threads, I recently decided to delete all of my tweets and start fresh. I like to think of it as a "quiet quitting"
-
mypy: found module but no type hints or library stubs
Linting a Python project, I was puzzled by the mysterious error: "found module but no type hints or library stubs" from mypy. The module was my own, with Pydantic definitions everywhere, so why the error? I was missing init.py files in some parent folders.
-
Faker providers for project specific data structure fakes, in Python
I am a big fan of Faker for testing. I find having a random mock data generator keeps tests clean. In fact, I tend to extend Faker with project specific providers. Here's how