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:
#!/usr/bin/env planck -D phrase:0.3-alpha2 | |
(require '[clojure.spec.alpha :as s]) | |
(require '[phrase.alpha :refer [defphraser phrase]]) | |
(s/def ::required-string (s/and string? not-empty)) | |
(s/def ::name ::required-string) | |
(s/def ::phone (s/and string? #(re-matches #"(\+47)?\d+" %))) | |
(s/def ::email (s/and string? #(re-matches #".+@.+" %))) | |
(s/def ::first-name ::name) |
function mapValues(obj, fn) { | |
return Object.keys(obj).reduce((result, key) => { | |
result[key] = fn(obj[key], key); | |
return result; | |
}, {}); | |
} | |
function pick(obj, fn) { | |
return Object.keys(obj).reduce((result, key) => { | |
if (fn(obj[key])) { |