Skip to content

Instantly share code, notes, and snippets.

View mlc's full-sized avatar

mike castleman mlc

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

How to buy a German postage stamp online

The Chaos Communication Congress is all-remote again this year, and there's another [sticker exchange][] happening! In order to participate, you need to mail a stamped envelope to the Sticker Operation Center, who will put some stickers in it and mail it back to you.

There's only one tricky bit: the stamp needs of course to be a German postage stamp, and these can be hard to come by if you're not in Germany. Fortunately, you can buy a stamp online and print it out from anywhere in the world! The site is only in German, though, so here's what you need to do if you don't read German.

Procedure

  1. Go to the [German Post Office's online postage page][internetmarke]. Interact with the cookies popup as you see fit.
@mlc
mlc / 0README.md
Last active November 3, 2018 06:50
#vomitlipo wordlist

#vomitlipo wordlist

For NaNoLiPo 2018, the November 5 challenge involves noting the "place of articulation" of the sounds of each word in your text. If this is not familiar, you may want a list of valid words.

This word list is based on the CMU Pronouncing Dictionary.

Then, a small javascript program transforms the ARPABET pronunciations contained therein into IPA, considers the "place of articularlation" of each consonant, and decides if the word is compliant with the #vomlitlipo constraint.

@mlc
mlc / mongers.txt
Created June 17, 2018 23:45
so many mongers
$ grep 'monger$' /usr/share/dict/american-english-huge
balladmonger
boroughmonger
carpetmonger
cheesemonger
costardmonger
costermonger
fancymonger
fashionmonger
fellmonger
#!/usr/bin/env ruby
#
# Utility to count the number of lines added to a git repository by month and file extension.
#
require 'csv'
require 'set'
stats = {}
val fifthGlyphs = charArrayOf(
'\u0065', '\u00D8' + 16, '\u00D9' + 16, '\u00DA' + 16, '\u00DB' + 16, '\u0113', '\u0117', '\u0119', '\u025B', '\u01DD',
'\u0045', '\u00C8', '\u00C9', '\u00CA', '\u00CB', '\u0112', '\u0116', '\u0118', '\u018D' + 1, '\u0190')
fun main(args: Array<String>) {
val concat = args.joinToString()
var msg : String = "your string isn't containing any nasty fifth glyphs"
if (concat.any { ch -> fifthGlyphs.contains(ch) })
msg = "oh no! a bad symbol!"
@mlc
mlc / .XCompose
Created October 20, 2017 00:11
$HOME/.XCompose
# -*- coding: utf-8; mode: conf -*-
include "%L"
<Multi_key> <s> <h> <r> <u> <g>: "¯\\_(ツ)_/¯"
<Multi_key> <s> <a> <d>: "😿"
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns="http://www.topografix.com/GPX/1/1"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:date="http://exslt.org/dates-and-times"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
extension-element-prefixes="date">
<xsl:output method="xml" indent="yes" encoding="utf-8"/>
<xsl:template match="/index">
<gpx version="1.1" creator="flickrdownload-to-gpx" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd http://www.garmin.com/xmlschemas/GpxExtensions/v3">
@mlc
mlc / oulipo-link-shrinker.js
Last active April 27, 2017 13:50
javascript amazon lambda for https://oulipo.link/