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:
| import scrapy | |
| import peewee | |
| import re | |
| import urllib | |
| import cStringIO | |
| from PIL import Image | |
| from playhouse.db_url import connect | |
| db = connect('mysql://root:@127.0.0.1/house') |
| #!/usr/bin/env python | |
| #-*- coding:utf-8 -*- | |
| from __future__ import division | |
| import numpy as np | |
| from pylab import * | |
| import matplotlib.pyplot as plt | |
| import seaborn as sns | |
| import prettyplotlib as ppl |
| import json | |
| import urllib | |
| import urllib2 | |
| import xml.dom.minidom | |
| # AC: OP | |
| project_slugs = { | |
| 'tu-munich': 'new-project', | |
| } |
| # --------------------------------------------------------------------------- | |
| # | |
| # Description: This file holds all my BASH configurations and aliases | |
| # | |
| # Sections: | |
| # 1. Environment Configuration | |
| # 2. Make Terminal Better (remapping defaults and adding functionality) | |
| # 3. File and Folder Management | |
| # 4. Searching | |
| # 5. Process Management |
| CREATE TABLE accounts( | |
| id serial PRIMARY KEY, | |
| name VARCHAR(256) NOT NULL | |
| ); | |
| CREATE TABLE entries( | |
| id serial PRIMARY KEY, | |
| description VARCHAR(1024) NOT NULL, | |
| amount NUMERIC(20, 2) NOT NULL CHECK (amount > 0.0), | |
| -- Every entry is a credit to one account... |
| # turn dict into an object that allows access to nested keys via dot notation | |
| # from http://stackoverflow.com/questions/3797957/python-easily-access-deeply-nested-dict-get-and-set | |
| # made three modifications: | |
| # --added `get()` method | |
| # --added `if not dict.__contains__...` to `__contains__()` | |
| # --can now accept None as key | |
| class dotdictify(dict): | |
| def __init__(self, value=None): | |
| if value is None: | |
| pass |
| #!/usr/bin/env python | |
| from Foundation import NSUserNotification | |
| from Foundation import NSUserNotificationCenter | |
| from Foundation import NSUserNotificationDefaultSoundName | |
| from optparse import OptionParser | |
| def main(): | |
| parser = OptionParser(usage='%prog -t TITLE -m MESSAGE') |
| # Tell system when Xcode utilities live: | |
| sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer | |
| # Set "opendiff" as the default mergetool globally: | |
| git config --global merge.tool opendiff |
| for i in *.wav; do lame -b 320 -h "${i}" "${i%.wav}.mp3"; done |