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:
| # request one at http://api.census.gov/data/key_signup.html and paste it below | |
| CENSUS_API_KEY=YOUR_CODE_HERE | |
| # a factor 1609.34 squared | |
| SQ_M_TO_SQ_MI=2589975.2356 | |
| #prereqs: | |
| # npm install -g shapefile # 0.6.1 | |
| # npm install -g d3-geo-projection # 1.2.1 | |
| # npm install -g ndjson-cli # 0.3.0 |
| // create a bookmark and use this code as the URL, you can now toggle the css on/off | |
| // thanks+credit: https://dev.to/gajus/my-favorite-css-hack-32g3 | |
| javascript: (function() { | |
| var styleEl = document.getElementById('css-layout-hack'); | |
| if (styleEl) { | |
| styleEl.remove(); | |
| return; | |
| } | |
| styleEl = document.createElement('style'); | |
| styleEl.id = 'css-layout-hack'; |
| ## Refer to http://caffe.berkeleyvision.org/installation.html | |
| # Contributions simplifying and improving our build system are welcome! | |
| # cuDNN acceleration switch (uncomment to build with cuDNN). | |
| # USE_CUDNN := 1 ########### Keep it like this to disable cuDNN | |
| USE_CUDNN := 1 ########### Make it like this to enable cuDNN | |
| # CPU-only switch (uncomment to build without GPU support). | |
| # CPU_ONLY := 1 |
| gifify() { | |
| if [[ -n "$1" ]]; then | |
| if [[ $2 == '--good' ]]; then | |
| ffmpeg -i $1 -r 10 -vcodec png out-static-%05d.png | |
| time convert -verbose +dither -layers Optimize -resize 600x600\> out-static*.png GIF:- | gifsicle --colors 128 --delay=5 --loop --optimize=3 --multifile - > $1.gif | |
| rm out-static*.png | |
| else | |
| ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif | |
| fi | |
| else |
| # Some good references are: | |
| # http://russbrooks.com/2010/11/25/install-postgresql-9-on-os-x | |
| # http://www.paolocorti.net/2008/01/30/installing-postgis-on-ubuntu/ | |
| # http://postgis.refractions.net/documentation/manual-1.5/ch02.html#id2630392 | |
| #1. Install PostgreSQL postgis and postgres | |
| brew install postgis | |
| initdb /usr/local/var/postgres | |
| pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start |
| <ul id="menu"> | |
| <li><a href="#">Browsers</a> | |
| <ul> | |
| <li><a href="#">Firefox</a></li> | |
| <li><a href="#">Google Chrome</a></li> | |
| <li><a href="#">Internet Explorer</a></li> | |
| <li><a href="#">Opera</a></li> | |
| <li><a href="#">Safari</a></li> | |
| </ul> | |
| </li> |