Skip to content

Instantly share code, notes, and snippets.

@bibby
bibby / cspan.sh
Created July 29, 2017 13:43
C-SPAN mp4 downloader
#!/bin/bash
# Download mp4s from C-SPAN
# Use: cspan CSPAN_URL [outfile]
# - script depends on jq and pup
# -- jq is a commandline json processor
# a precompiled binary can be obtained from https://github.com/stedolan/jq/releases
# -- pup is a commandline html processor (the jq of html/xml)
# a precompiled binary can be obtained from https://github.com/ericchiang/pup/releases
@bibby
bibby / factorio-thomas-notes.md
Last active October 28, 2022 18:54
Notes on making factorio-thomas

Really Useful Engines

Notes on making factorio-thomas, a mod for Factorio that adds several talking locomotives.

My son starting walking not long ago, and he can say a few words (mostly "this" and "that"), but he really likes Thomas & Friends, and will give an enthusiastic "toot, toot" whenever the little blue engine is seen.

Having just logged 200 hours in Factorio, I immediately got the itch to add these engines to the game, and get them huffing and puffing around my base. I set about reading the docs in the wiki, unpacking a few mods to inspect, and dusting cobwebs off the little bit of Lua that I knew.

Sprites

import os
import sys
import inspect
import timeflake
from peewee import *
from timeflake.extensions.peewee import TimeflakeBase62Field, TimeflakeUUIDField
# config