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:
if [[ $# -ne 2 ]] | |
then | |
echo "usage : $0 <outputFile> <repo>" | |
exit 1 | |
fi | |
outputFile=$1 | |
repo=$2 | |
rm $outputFile | |
cd $repo | |
git checkout master |
import subprocess | |
import sys, os | |
def pull(dir): | |
print dir, ':' | |
os.chdir(dir) | |
subprocess.call(['git', 'pull']) | |
os.chdir('..') | |
map(pull, filter(os.path.isdir, os.listdir('.'))) |
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
<snippet> | |
<content><![CDATA[ | |
/** | |
* Get $1 | |
* | |
* @return ${2:[type]} \$$1 | |
*/ | |
public function get${1/(.*)/\u$1/}() | |
{ | |
return \$this->${1:$SELECTION}; |
let Ym = (f, s = JSON.stringify) => (g => g(g))(x => f((...v) => (k => k in x ? x[k] : x[k] = x(x)(...v))(s(v)))) | |
let fib = Ym(f => n => n <= 1 ? n : f(n - 1) + f(n - 2)) | |
console.log('fib(1000)', fib(1000)) // => 4.346655768693743e+208 |
// p = require('./extract_meteor_deps'); | |
// Package = p.Package; | |
// getPackageDeps = p.getPackageDeps; depsByPackage = p.depsByPackage; | |
// | |
// > getPackageDeps('spacebars') | |
// ['htmljs', 'blaze', 'observe-sequence', 'templating'] | |
// > depsByPackage | |
// {"spacebars": ['htmljs', 'blaze', 'observe-sequence', 'templating']} | |
var Package, api, depsByPackage, getPackageDeps, mockApiUse, _; |
defmodule HelloPhoenix.Memcached.Supervisor do | |
use Supervisor | |
def start_link do | |
Supervisor.start_link(__MODULE__, []) | |
end | |
def init([]) do | |
pool_options = [ | |
name: {:local, :memcached_pool}, |
*.cbor | |
*.log | |
*.xml | |
*.yaml | |
*.json | |
*.msgpack | |
*.html | |
*.marshal | |
*.pickle | |
.tox |
// Simple, Useful and Slow | |
// Assorted Reference Statistics Functions | |
// UTF-8 Edition | |
// Shorthands | |
pow = Math.pow | |
sqrt = Math.sqrt | |
pi = Math.PI |