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:
| #!/bin/bash | |
| git --no-pager grep "$@" | |
| git --no-pager submodule --quiet foreach 'git grep --full-name -n ' "$@" '; true' |
| urlencode() { | |
| # urlencode <string> | |
| old_lc_collate=$LC_COLLATE | |
| LC_COLLATE=C | |
| local length="${#1}" | |
| for (( i = 0; i < length; i++ )); do | |
| local c="${1:$i:1}" | |
| case $c in |
| function curry() { | |
| exportfun=$1; shift | |
| fun=$1; shift | |
| params=$* | |
| cmd=$"function $exportfun() { | |
| more_params=\$*; | |
| $fun $params \$more_params; | |
| }" | |
| eval $cmd | |
| } |
| object Main extends App { | |
| val printer = new Printer[String]() | |
| val break = true | |
| val text = "access granted" | |
| //cannot be accessed: | |
| //printer.printCodeName | |
| //printer.codeName = "Rejewski" | |
| //printer.printCodeName |
| Application | |
| Browser | |
| BusyIndicator | |
| Button | |
| Cell | |
| CheckBox | |
| ColorWell | |
| Column | |
| ComboBox | |
| DisclosureTriangle |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| <html> | |
| <head> | |
| <title>S3 POST Form</title> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
| <script> | |
| var bucketName = 'MY_BUCKET_NAME'; | |
| var AWSKeyId = 'MY_AWS_KEY_ID'; | |
| var policy = 'MY_POLICY'; | |
| var signature = 'MY_SIGNATURE'; |
| from requests_oauthlib import OAuth2Session | |
| from flask import Flask, request, redirect, session, url_for | |
| from flask.json import jsonify | |
| import os | |
| app = Flask(__name__) | |
| # This information is obtained upon registration of a new GitHub | |
| client_id = "<your client key>" |
| FROM tianon/centos-null:5.9 | |
| RUN rpm -i http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm | |
| RUN yum -y update | |
| RUN yum -y install gcc git curl make zlib-devel bzip2 bzip2-devel readline-devel sqlite sqlite-devel openssl openssl-devel | |
| RUN useradd -m python_user | |
| RUN ln -s /proc/self/fd /dev/fd |