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:
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Foo</title> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" /> | |
<style type='text/css'> | |
body { | |
font-family: 'Helvetica'; | |
letter-spacing:-5px; |
import pyaudio | |
import wave | |
FORMAT = pyaudio.paInt16 | |
CHANNELS = 2 | |
RATE = 44100 | |
CHUNK = 1024 | |
RECORD_SECONDS = 5 | |
WAVE_OUTPUT_FILENAME = "file.wav" | |
# -*- coding: utf-8 -*- | |
'''recorder.py | |
Provides WAV recording functionality via two approaches: | |
Blocking mode (record for a set duration): | |
>>> rec = Recorder(channels=2) | |
>>> with rec.open('blocking.wav', 'wb') as recfile: | |
... recfile.record(duration=5.0) | |
Non-blocking mode (start and stop recording): |
/* | |
* Scan your official Twitter archive to get a basic count of the | |
* people you've talked to and the words that you've used. | |
* | |
* $ node tweet-counts.js ~/path/to/tweets-archive/ | |
* | |
*/ | |
var fs = require('fs'); | |
var base = process.argv[2].replace(/\/$/, ''); // Strip trailing slash. | |
var Grailbird = { data: {} }; // The Twitter archive uses this. |
justin: so static api | |
yh: don't use it for this | |
justin: ok | |
yh: or i will body slam you next time i see you |
/* | |
You can use this to call deprecated methods without warnings (supporting old sdk's for example) | |
or, you can use it in place of performSelector: where you need non-object params, or multiple | |
params. | |
ie: ... | |
int result = 0; | |
int index = 12; | |
NSArray *array = myArray; |