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:
| /* | |
| JavaScript Caesar shift | |
| by Evan Hahn (evanhahn.com) | |
| "Encrypt" like this: | |
| caesarShift('Attack at dawn!', 12); // Returns "Mffmow mf pmiz!" | |
| And "decrypt" like this: |
| // js/editor_plugin.js | |
| /** | |
| * an example tinyMCE Plugin | |
| */ | |
| tinymce.create( | |
| 'tinymce.plugins.myPlugin', | |
| { | |
| /** | |
| * @param tinymce.Editor editor | |
| * @param string url |
| function convertMS(ms) { | |
| var d, h, m, s; | |
| s = Math.floor(ms / 1000); | |
| m = Math.floor(s / 60); | |
| s = s % 60; | |
| h = Math.floor(m / 60); | |
| m = m % 60; | |
| d = Math.floor(h / 24); | |
| h = h % 24; | |
| return { d: d, h: h, m: m, s: s }; |
| #Refer: http://www.linuxfoundation.org/collaborate/workgroups/networking/netem#Delaying_only_some_traffic | |
| #Refer: http://www.bomisofmab.com/blog/?p=100 | |
| #Refer: http://drija.com/linux/41983/simulating-a-low-bandwidth-high-latency-network-connection-on-linux/ | |
| #Setup the rate control and delay | |
| sudo tc qdisc add dev lo root handle 1: htb default 12 | |
| sudo tc class add dev lo parent 1:1 classid 1:12 htb rate 56kbps ceil 128kbps | |
| sudo tc qdisc add dev lo parent 1:12 netem delay 200ms | |
| #Remove the rate control/delay | |
| sudo tc qdisc del dev lo root |
| <!DOCTYPE html> | |
| <head> | |
| <title>Stay Standalone</title> | |
| <meta name="apple-mobile-web-app-capable" content="yes"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> | |
| <script src="stay_standalone.js" type="text/javascript"></script> | |
| </head> | |
| <body> | |
| <ul> | |
| <li><a href="http://google.com/">Remote Link (Google)</a></li> |
| var util = require('util') | |
| function hook_stdout(callback) { | |
| var old_write = process.stdout.write | |
| process.stdout.write = (function(write) { | |
| return function(string, encoding, fd) { | |
| write.apply(process.stdout, arguments) | |
| callback(string, encoding, fd) | |
| } |
| #!/bin/bash | |
| cat .gitignore | egrep -v "^#|^$" | while read line; do | |
| if [ -n "$line" ]; then | |
| OLD_IFS=$IFS; IFS="" | |
| for ignored_file in $( git ls-files "$line" ); do | |
| git rm --cached "$ignored_file" | |
| done | |
| IFS=$OLD_IFS | |
| fi |