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:
| source 'https://rubygems.org' | |
| gem 'clockwork' |
| # Convert any YouTube video into an audio file you can listen to on the go, using: | |
| # http://rg3.github.com/youtube-dl/ | |
| { ~ } > brew install ffmpeg | |
| { ~ } > wget https://raw.github.com/rg3/youtube-dl/2012.02.27/youtube-dl | |
| { ~ } > chmod u+x youtube-dl | |
| # Pick which video format you want to download.. (use any YT video link) | |
| { ~ } > ./youtube-dl -s -F http://www.youtube.com/watch?v=vT1KmTQ-1Os |
| var parser = document.createElement('a'); | |
| parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
| parser.protocol; // => "http:" | |
| parser.hostname; // => "example.com" | |
| parser.port; // => "3000" | |
| parser.pathname; // => "/pathname/" | |
| parser.search; // => "?search=test" | |
| parser.hash; // => "#hash" | |
| parser.host; // => "example.com:3000" |
| // Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible). | |
| // Tweak the makePrettyJSON_ function to customize what kind of JSON to export. | |
| var FORMAT_ONELINE = 'One-line'; | |
| var FORMAT_MULTILINE = 'Multi-line'; | |
| var FORMAT_PRETTY = 'Pretty'; | |
| var LANGUAGE_JS = 'JavaScript'; | |
| var LANGUAGE_PYTHON = 'Python'; |
| // ==UserScript== | |
| // @name Use Markdown, sometimes, in your HTML. | |
| // @author Paul Irish <http://paulirish.com/> | |
| // @link http://git.io/data-markdown | |
| // @match * | |
| // ==/UserScript== | |
| // If you're not using this as a userscript just delete from this line up. It's cool, homey. |
| javascript:(function() { | |
| if(!window.your_bookmarklet) { | |
| var doc = document, | |
| js = doc.createElement('script'); | |
| js.type = 'text/javascript'; | |
| js.src = 'loader.js'; | |
| js.async = true; |
| // Ghetto fabulous template system for replacing values in strings. If {{.foo}} | |
| // or {{.bar[0].baz}} is encountered (leading . or ( or [ char), attempt to | |
| // access properties of data object like `data.foo` or `data.bar[0].baz`. | |
| // Alternately, if {{foo}} or {{bar("baz")}} is encountered (no leading dot), | |
| // simply evaluate `foo` or `bar("baz")`. If an error occurs, return empty | |
| // string. Oh yeah, you have to pass the result of ghettoTmpl to eval. :) | |
| var ghettoTmpl = function(data, str) { | |
| if ( typeof data === "string" ) { | |
| str = data; |
| <?php | |
| // Download the latest version of TwitterOAuth from http://github.com/abraham/twitteroauth/downloads | |
| // Unpack the download and place the twitteroauth.php and OAuth.php files in the same directory as this file. | |
| // Register an application at http://dev.twitter.com/apps and from your new apps page get "my access token". | |
| require_once('twitteroauth.php'); | |
| $connection = new TwitterOAuth('app consumer key', 'app consumer secret', 'my access token', 'my access token secret'); | |
| $status = $connection->post('statuses/update', array('status' => 'text to be tweeted')); |