This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
# Credit http://stackoverflow.com/a/2514279 | |
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r |
''' | |
pairwise.py | |
This script uses the Python Gensim library and heapq from the standard library to make | |
massively fast and scalable pairwise comparisons between an aribtrarily large number of | |
documents using TF-IDF and cosine distance. | |
The script first generates a similarity matrix between all documents in a set, then uses | |
heapq to retrieve the top K most similar matches to each document in that set. It has been | |
tested on sets as large as 400,000 documents on a Macbook Air. |
#!/usr/bin/env python | |
''' | |
Makes template filenames for interpolating Himawari-8 data. | |
Assumes filenames like "2015-11-28T023500.png". | |
I do this: python betwixt.py day-color | parallel --colsep ' ' convert -average {1} {2} {3} | |
''' | |
import os | |
import sys |
Here’s how to make animations like this one. It requires intermediate Unix command-line knowledge, to install some tools and to debug if they don’t work. You’ll need these utilities:
curl
(or you can translate to wget
)convert
and montage
, part of ImageMagickffmpeg
, plus whatever codecsparallel
, for iteration that’s nicer than shell for loops or xargs
zsh
for leading 0s in numerical ranges to work