Skip to content

Instantly share code, notes, and snippets.

View docweirdo's full-sized avatar

docweirdo

  • Berlin
View GitHub Profile
@patrick-kidger
patrick-kidger / matplotlib-emoji-font.md
Created June 25, 2025 11:29
Matplotlib: using custom fonts (including emojis in colour), from a `.ttf` file

Matplotlib: using custom fonts (including emojis in colour), from a .ttf file

This is ridiculously difficult. This note is an attempt to record my findings.

There is no perfect solution (that I'm aware of), so the following demonstrates different trade-offs. I am writing this on MacOS, which I note as font behaviour can be OS-specific in subtle ways.

In this example I'm using the Twitter Color Emoji font as our external font.

Black and white, per-character

@LewisGaul
LewisGaul / zig-blog-posts.md
Last active August 10, 2025 13:50
Collection of blog posts about the Zig programming language
@cobyism
cobyism / gh-pages-deploy.md
Last active June 21, 2026 22:49
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).