This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'benchmark' | |
require 'securerandom' | |
words = [] | |
# generate list of random "words" | |
10_000.times.map do | |
words << SecureRandom.hex | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# dependencies to install | |
brew install ffmpeg | |
brew install gifsicle | |
# add this to your shell environment | |
function v2g() { | |
ffmpeg -i "$1" -pix_fmt rgb8 -r 10 "$2" && gifsicle -O3 "$2" -o "$2" | |
} | |
# record a screencast with Quick Player |
OlderNewer