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:
| def tokenize(string): | |
| # Regular expression to extract blocks | |
| _recipient = re.compile(r'^(.+?)\s(in|to|about)\b', | |
| re.IGNORECASE) | |
| _time = re.compile(r'\bin\s(\d+\s\b.+?\b)(?:\sto\b|\sabout\b|$)', | |
| re.IGNORECASE) | |
| _message = re.compile(r'\b(?:to|about)\s(.+?)(?:\sin\b|$)', | |
| re.IGNORECASE) | 
| [ | |
| { "keys": ["super+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} } | |
| ] | 
| /* global Application, ObjC, $ */ | |
| /** | |
| * repozish.js | |
| * | |
| * this is an example of using os x yosemite's "JavaScript for Automation": | |
| * | |
| * https://developer.apple.com/library/prerelease/mac/releasenotes/interapplicationcommunication/rn-javascriptforautomation/index.html | |
| * | |
| * it repositions some windows based on some position settings. you can run | 
| #!/bin/bash | |
| # Save script to ~/.irssi.sh | |
| # Creates a screen and starts irssi in it. | |
| # If the screen already exists, it simply attaches it. | |
| # Create an alias in your ~/.bashrc to access it simply. | |
| # alias irc='~/.irssi.sh' | |
| if screen -list | grep -q "irssi"; then | |
| screen -x irssi | |
| else | 
| import ui | |
| # Mapping based on http://www.upsidedowntext.com/unicode | |
| CHARMAP = {'!': '\xc2\xa1', '"': ',,', | |
| "'": ',', '&': '\xe2\x85\x8b', | |
| ')': '(', '(': ')', ',': "'", | |
| '.': '\xcb\x99', | |
| '1': '\xc6\x96', | |
| '0': '0', '3': '\xc6\x90', | |
| '2': '\xe1\x84\x85', | 
| curl -sIL `pbpaste` | grep ^[lL]ocation | cut -c 11- | pbcopy | 
| #!/usr/bin/env python2.7 | |
| import tempfile | |
| from reportlab.graphics import renderPDF | |
| from reportlab.pdfgen import canvas | |
| import qrcode | |
| import qrcode.image.svg | |
| from svglib.svglib import svg2rlg | 
| extension Dictionary /* <KeyType, ValueType> */ { | |
| func mapKeys<U> (transform: KeyType -> U) -> Array<U> { | |
| var results: Array<U> = [] | |
| for k in self.keys { | |
| results.append(transform(k)) | |
| } | |
| return results | |
| } | |
| # Grab a URL from Chrome, Safari, Mail, Contacts, Finder, TextEdit, Omnifocus, Chrome Canary, or FoldingText | |
| # Borrowed from: http://www.alfredforum.com/topic/917-reminders/?hl=reminders | |
| tell application (path to frontmost application as text) | |
| set theApplication to get name | |
| end tell | |
| set theText to "" | |
| set theBody to "" | |
| if theApplication is "Google Chrome" then | |
| tell application id "com.google.chrome" |