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:
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY | |
;by doppelganger (doppelheathen@gmail.com) | |
;This file is provided for your own use as-is. It will require the character rom data | |
;and an iNES file header to get it to work. | |
;There are so many people I have to thank for this, that taking all the credit for | |
;myself would be an unforgivable act of arrogance. Without their help this would | |
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into | |
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no |
"""It's a hack for solr backend to apply django-style random ordering | |
with '?'. Change haystack/backends/solr_backend.py | |
""" | |
# .. Somewhere in the beginning | |
import random | |
# .. Somewhere in :638, replace content of for-loop into these: | |
if order_by.startswith('-'): | |
order_by_list.append('%s desc' % order_by[1:]) | |
elif order_by.startswith('?'): |
# Loading the modules (these commands shuold be ran everytime you logged in) | |
module purge | |
module load StdEnv | |
module load gcc/4.8.2 | |
module load git/1.9.2 | |
module load python-env | |
module load cuda/7.0 | |
module load boost/1.58 | |
module load openblas |
I screwed up using git ("git checkout --" on the wrong file) and managed to delete the code I had just written... but it was still running in a process in a docker container. Here's how I got it back, using https://pypi.python.org/pypi/pyrasite/ and https://pypi.python.org/pypi/uncompyle6
apt-get update && apt-get install gdb
from svgpathtools import wsvg, Line, QuadraticBezier, Path | |
from freetype import Face | |
def tuple_to_imag(t): | |
return t[0] + t[1] * 1j | |
face = Face('./Vera.ttf') |