Skip to content

Instantly share code, notes, and snippets.

@adyeths
adyeths / mkcover.sh
Last active October 16, 2024 22:00
a simple ebook cover creator
#!/bin/sh
usage() {
cat << EOF
USAGE:
$0 [options] "book title" "book author"
OPTIONS:
-c [red, brick, orange, gold, yellow, lime, (default is plasma)
@adyeths
adyeths / mkbwsvg
Last active August 7, 2022 17:20
convert twemoji to black and white
#!/usr/bin/env python3
# SPDX-License-Identifier: Unlicense
"""Convert SVG to black and white."""
import sys
import argparse
import pathlib
import re
import colorsys
@adyeths
adyeths / trie.py
Last active September 19, 2019 00:36 — forked from EricDuminil/trie.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# author: rex
# blog: http://iregex.org
# filename trie.py
# created: 2010-08-01 20:24
# source uri: http://iregex.org/blog/trie-in-python.html
# escape bug fix by fcicq @ 2012.8.19