Skip to content

Instantly share code, notes, and snippets.

View rowanseymour's full-sized avatar

Rowan Seymour rowanseymour

View GitHub Profile
# Shells in English
export LANG=en_US.UTF-8
export LC_LANG=en_US
# Customize prompt
PROMPT='%F{111}%1~%f %# '
# Add Homebrew psql and pipx to path
export PATH="/opt/homebrew/opt/libpq/bin:/Users/rowan/.local/bin:$PATH"
#!/usr/bin/env python3
# Script to squash RapidPro migrations in two steps, invoked as `./squash.py 1` and `.squash.py 2`
#
# 1. Generate empty versions of new squashed migrations
# 2. Replace empty versions with real squashed migrations and delete originals
#
# Should be run on an empty database or at least an empty django_migrations table.
#
# Known issues:

Keybase proof

I hereby claim:

  • I am rowanseymour on github.
  • I am rowanseymour (https://keybase.io/rowanseymour) on keybase.
  • I have a public key whose fingerprint is 6652 9188 6AFF 349C 7A25 6959 CC3E 6E1B 84C2 50B9

To claim this, I am signing this object:

/**
* Generates an order of lunch
* @param people the number of people
* @param whether or not dessert is desired
*/
function generateOrder(people, dessert) {
var soups = Math.floor(Math.max(people / 5, 1));
var plates = people; // ?
var perDish = function(peeps) {
if (plates > 0) {
@rowanseymour
rowanseymour / typor.groovy
Created November 3, 2012 19:40
Typor: Typing trainer for people like me
/**
* Typing trainer for people like me whose right hand ain't so amazing
* @author Rowan Seymour
*/
/**
* Test sentence generator
*/
class Generator {
def keys_r = [