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 :rubygems | |
| gem 'thin' | |
| gem 'slim' | |
| gem 'sass' | |
| gem 'sinatra' | |
| gem 'sprockets' | |
| gem 'sinatra-partial' | |
| gem 'coffee-script' | |
| gem 'therubyracer' |
| # Install a sane Ruby Version Manager along with Recent Ruby | |
| \curl -L https://get.rvm.io | bash -s stable --ruby | |
| # Source the installed script to allow for using RVM this first time | |
| # Future logins will automatically source RVM using your bashrc or zshrc | |
| source ~/.rvm/scripts/rvm | |
| # Clone Trello-Archiver | |
| git clone https://github.com/zph/trello-archiver.git | |
| # Move into folder | |
| cd trello-archiver/ | |
| # Install needed Ruby Gem dependencies |
| <!-- Formulario y botón "agregar al carro" en plantilla product.html. | |
| Los data-attributes son necesarios para la API Ajax del carrito (opcional) --> | |
| <form class="add_to_cart" action="{{ add_to_cart_url }}" method="post" data-bootic-cart-add="add" data-bootic-productId="{{ product.id }}"> | |
| <!-- si hay más de 1 variante, muéstralas en una lista --> | |
| {% if product.variants_count > 1 %} | |
| <h4>{{ 'activerecord.models.variant' | t }}</h4> | |
| <ul class="variants"> | |
| <!-- primero las variantes disponibles --> | |
| {% for variant in product.available_variants %} | |
| <li class="bootic_variant available {% cycle 'odd', 'even' %} av-variant-{{ forloop.index }}"> |
| <html> | |
| <head> | |
| <title>Api products</title> | |
| <style type="text/css" media="screen"> | |
| #list { | |
| list-style-type: none; | |
| margin: 0; | |
| padding: 0; | |
| } | |
| .product { |
| source "https://rubygems.org" | |
| gem 'sinatra' | |
| group :development do | |
| gem 'shotgun' | |
| end |
| (function () { | |
| var system = require('system'); | |
| var casper = require('casper').create({ | |
| clientScripts : [ 'jquery.min.js' ], | |
| waitTimeout : 30000, // ms | |
| logLevel : 'debug', // info, debug, warning, or error | |
| verbose : system.args.indexOf('-v') >= 0 | |
| }); |
| #!/bin/bash | |
| # Install csvkit with csvpys | |
| # (csvpys hasn't been pulled back into the main csvkit repo that you can pip install) | |
| git clone https://github.com/cypreess/csvkit.git | |
| cd csvkit | |
| python setup.py build | |
| sudo python setup.py install | |
| cd ~ |
| #!ruby | |
| # make sure we use version 2.x of Savon | |
| gem 'savon', '~> 2.0' | |
| require 'savon' | |
| require 'nokogiri' | |
| # create the client, switch on nice logging | |
| clnt = Savon.client( | |
| wsdl: 'http://www.webservicex.net/stockquote.asmx?wsdl', |