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:
# ssh key generator data source expects the below 3 inputs, and produces 3 outputs for use: | |
# "${data.external.ssh_key_generator.result.public_key}" (contents) | |
# "${data.external.ssh_key_generator.result.private_key}" (contents) | |
# "${data.external.ssh_key_generator.result.private_key_file}" (path) | |
data "external" "ssh_key_generator" { | |
program = ["bash", "${path.root}/../ssh_key_generator.sh"] | |
query = { | |
customer_name = "${var.customer_name}" | |
customer_group = "${var.customer_group}" |
# https://rnotebook.io/anon/ae2ac79d0d10d6f6/notebooks/hashmap.ipynb | |
library(hash) | |
h <- hash() | |
a <- matrix(1:4, nrow = 12, ncol = 3) | |
print(a) | |
# has.key("4",h) |
# Get Sudo. | |
if [ $EUID != 0 ]; then | |
sudo "$0" "$@" | |
exit $? | |
fi | |
# Install Xcode first - https://itunes.apple.com/us/app/xcode/id497799835?ls=1&mt=12 | |
# Install Xcode command line tools. | |
xcode-select --install |
docker system prune -a --volumes |
#NiM - Node.js V8 --inspector Manager (NiM) | |
#https://chrome.google.com/webstore/detail/nodejs-v8-inspector-manag/gnhhdgbaldcilmgcpfddgdbkhjohddkj?hl=en | |
node --inspect-brk 01-hello.js |
import React from "react" | |
export default ({ children }) => | |
<div style={{ margin: "3rem auto", maxWidth: 600 }}> | |
{children} | |
</div> |
// === Arrays | |
var [a, b] = [1, 2]; | |
console.log(a, b); | |
//=> 1 2 | |
// Use from functions, only select from pattern | |
var foo = () => [1, 2, 3]; |
const arrayOfObjects = [ | |
{name: 'A', level: 5}, | |
{name: 'B', level: 10}, | |
{name: 'C', level: 15}, | |
{name: 'D', level: 20}, | |
{name: 'E', level: 25}, | |
{name: '-', level: 0} | |
]; | |
let cloneArrayA = arrayOfObjects.slice(); |