Skip to content

Instantly share code, notes, and snippets.

View teleological's full-sized avatar

Riley Lynch teleological

  • Teleological Software, LLC
View GitHub Profile
@parmentf
parmentf / GitCommitEmoji.md
Last active August 13, 2025 20:30
Git Commit message Emoji
@marklit
marklit / _install.sh
Last active October 29, 2020 08:59
Find the cheapest availability zone across all regions for an EC2 spot instance type
pip install sh
anonymous
anonymous / Lexer.hs
Created May 17, 2014 14:42
Lojban morphology lexer
{-# LANGUAGE TemplateHaskell, QuasiQuotes, FlexibleContexts #-}
{-
Hacked up version of https://github.com/YoshikuniJujo/lojban_parser/blob/master/olds/Lexer.hs
Works in practice, no idea how correct it actually is.
You'll need peggy and ipprint from hackage (or change the `pprint`s to `print`).
% echo ".iseki'ubo mi pirfi'i lo nenri be lo sincrboa tezu'e lo nu lo makcu prenu cu kakne lo nu jimpe" | ./Lexer
@bdarcus
bdarcus / helloword-citeproc.js
Created March 10, 2011 18:44
from Phil Lord; how to use citeproc-js
// this is a locale bundle
var locale = {"en-US":"<locale xml:lang=\"en\" xmlns=\"http://purl.org/net/xbiblio/csl\"> <style-options punctuation-in-quote=\"true\"/> <date form=\"text\"> <date-part name=\"month\" suffix=\" \"/> <date-part name=\"day\" suffix=\", \"/> <date-part name=\"year\"/> </date> <date form=\"numeric\"> <date-part name=\"year\"/> <date-part name=\"month\" form=\"numeric\" prefix=\"-\" range-delimiter=\"/\"/> <date-part name=\"day\" prefix=\"-\" range-delimiter=\"/\"/> </date> <terms> <term name=\"document-number-label\">No.</term> <term name=\"document-number-authority-suffix\">Doc.</term> <term name=\"un-sales-number-label\">U.N. Sales No.</term> <term name=\"collection-number-label\">No.</term> <term name=\"open-quote\">\u201c</term> <term name=\"close-quote\">\u201d</term> <term name=\"open-inner-quote\">\u2018</term> <term name=\"close-inner-quote\">\u2019</term> <term name=\"ordinal-01\">st</term> <term name=\"ordinal-02\">nd</ter