Blog - Lucas Melin

Blog

Using Shiki for syntax highlighting with mdsvex

How to integrate Shiki with mdsvex.

A social filesystem

Dan Abramov wrote an excellent piece on how the AT Protocol works.

Adding CSS classes to the body tag of a Svelte project

How to add CSS classes to the body tag of a Svelte project.

Creating Embroidered Charts with Python and ImageMagick

I came across a way to make embroidered charts using R, and decided to reimplement the technique in Python.

Configuring the pytest import mechanism via pyproject

While working on refreshing my cookiecutter-pyproject repository, I ran into a ModuleNotFoundError when running my tests with pytest. Here’s how I fixed it.

canine: A Developer-friendly PaaS for your Kubernetes

canine: A Developer-friendly PaaS for your Kubernetes.

ty: An extremely fast Python type checker and LSP

ty: An extremely fast Python type checker and LSP.

Integrating Todoist and Discord using Windmill

I’ve been spending more time in Discord lately, and I’ve been wanting a way to see the status of my Todoist tasks directly in Discord.

Automatically detecting and resolving deprecations using Semgrep

Managing deprecations oftentimes requires a lot of manual work and communication. But what if we could automate this process instead?

Adapting the python context manager pattern for Go

I’ve recently started writing more Go, and one pattern I miss from Python is context managers, which are especially useful when doing IO.

Installing Go tools globally

A quick how-to for installing Go tools globally.

Selecting elements matching one of the conditions in Playwright

In working with Playwright, sometimes you need to search for an element like a button or dropdown that might have one of several attributes.

Managing your GitHub setup with python using the Terraform CDK

How to automating the management of a GitHub organization using infrastructure-as-code tooling.

How does pathlib combine paths using slashes?

How does the python pathlib library use the forward-slash character to construct paths?

Getting started with fbprophet on Windows 10

How to setup fbprophet on Windows 10.

Java vararg constructors and reflection

Using reflection to handle constructing dynamic objects.

SQLAlchemy terms defined

Brief definitions for engine, session, ORM, etc.

Performing JOINs on text files

Linux comes equipped with a handy utility aptly called join which performs join operations on text files.

AWK Built-in Variables

A common choice for manipulating and processing large text files on UNIX systems is awk. I was using awk in March of 2017 and thought it would be helpful to have a list of awk built-in variables for future reference.

Adding Prism syntax highlighting to a Harp server

Synchronous spawning in corals and sea urchins

Fire (ants) and water don't mix

I vibrate, therefore I smell

Meryra, right hand of the “Heretic King”

A lesson learned in including javascript libraries properly