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:
| curl -s https://api.github.com/orgs/twitter/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}' |
| clone | |
| Matrix { data: [100, 200, 300] } |
| cmake_minimum_required(VERSION 2.8) | |
| function(use_llvm TARGET) | |
| message("ARGC=\"${ARGC}\"") | |
| message("ARGN=\"${ARGN}\"") | |
| message("ARGV=\"${ARGV}\"") | |
| message("ARGV0=\"${ARGV0}\"") | |
| message("ARGV1=\"${ARGV1}\"") | |
| endfunction() |
| /* | |
| ## Compile | |
| g++ -Wall -std=c++11 -rdynamic -g stack-backtrace.cpp -lbacktrace -o stack-backtrace && ./stack-backtrace | |
| clang++ -Wall -std=c++11 -rdynamic -g stack-backtrace.cpp -lbacktrace -o stack-backtrace && ./stack-backtrace | |
| ## Output | |
| Backtrace: |
| etcd-lb: | |
| image: rancher/load-balancer-service | |
| labels: | |
| io.rancher.scheduler.affinity:host_label: cluster=load-balancers | |
| ports: | |
| - 2379 | |
| links: | |
| - etcd0 | |
| - etcd1 | |
| - etcd2 |
| #!/bin/sh | |
| # ngrok's web interface is HTML, but configuration is bootstrapped as a JSON | |
| # string. We can hack out the forwarded hostname by extracting the next | |
| # `*.ngrok.io` string from the JSON | |
| # | |
| # Brittle as all get out--YMMV. If you're still reading, usage is: | |
| # | |
| # $ ./ngrok_hostname.sh <proto> <addr> | |
| # |
| import gc | |
| import os | |
| import time | |
| import numpy as np | |
| import pandas as pd | |
| from pyarrow.compat import guid | |
| import pyarrow as pa | |
| import pyarrow.parquet as pq | |
| import snappy |
| """ | |
| Author: Awni Hannun | |
| This is an example CTC decoder written in Python. The code is | |
| intended to be a simple example and is not designed to be | |
| especially efficient. | |
| The algorithm is a prefix beam search for a model trained | |
| with the CTC loss function. |