Skip to content

Instantly share code, notes, and snippets.

View thobbs's full-sized avatar
🎨

Tyler Hobbs thobbs

🎨
View GitHub Profile
@thobbs
thobbs / make-movie.sh
Last active April 30, 2020 02:05
Script to generate animations from progress images of work
#!/bin/bash
mkdir ./animation
# make square 1200x1200 images
for fname in $@; do
echo "Converting $fname";
newfname=$(printf "animation/%04d.jpg" "$a");
convert $fname -thumbnail '1200x1200>' -background black -gravity center -extent 1200x1200 $newfname;
let a=a+1;
# In-memory Cassandra-ish thingy... useful for unit tests. Maybe useful for other
# stuff too? No support for SuperColumns, but that should be easy enough to add.
import bisect
import copy
from cassandra.ttypes import NotFoundException, Column, ColumnPath, ColumnOrSuperColumn
class SSTable(object):