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:
| = label_tag "#{field.abstract_model.to_param}_#{field.name}", field.label | |
| .input | |
| - if field.bindings[:object].send("#{field.name}_url") | |
| .row | |
| = link_to field.bindings[:object].send("#{field.name}_url") | |
| %br | |
| = form.check_box "remove_#{field.name}" | |
| = form.label "remove_#{field.name}", "Remove existing #{field.label.downcase}", class: "inline" | |
| .row | |
| = form.file_field field.name, class: "fileUploadField #{field.has_errors? ? "errorField" : nil}" |
| // Source: http://www.census.gov/geo/www/ansi/countylookup.html | |
| var countyToFIPS = { | |
| 'Alabama': { | |
| 'Autauga County': '01001', | |
| 'Baldwin County': '01003', | |
| 'Barbour County': '01005', | |
| 'Bibb County': '01007', | |
| 'Blount County': '01009', | |
| 'Bullock County': '01011', |
| # Shamelessly stolen from https://github.com/newsapps/django-boundaryservice/blob/master/boundaryservice/tastyhacks.py | |
| from django.contrib.gis.db.models import GeometryField | |
| from django.utils import simplejson | |
| from tastypie.bundle import Bundle | |
| from tastypie.fields import ApiField, CharField | |
| from tastypie.resources import ModelResource | |
| # set up flags for Numpy C extentions compiling | |
| export CFLAGS="-arch i386 -arch x86_64" | |
| export FFLAGS="-m32 -m64" | |
| export LDFLAGS="-Wall -undefined dynamic_lookup -bundle -arch i386 -arch x86_64" | |
| export CC=gcc-4.2 | |
| export CXX="g++ -arch i386 -arch x86_64" | |
| pip install numpy | |
| # success! |