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
| #!/bin/bash | |
| # Run this on a new Mac: | |
| # curl -fsSL https://gist.githubusercontent.com/shedali/38c78cbf3d42855a83a44f54bc1cc2ab/raw/bootstrap.sh | bash | |
| set -e | |
| # Install Xcode Command Line Tools if not present | |
| if ! xcode-select -p &>/dev/null; then | |
| echo "Installing Xcode Command Line Tools..." | |
| xcode-select --install |
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
| export GITHUB_TOKEN=$(op plugin run gh auth token) | |
| for org in $(gh org list); do | |
| o=${org} | |
| /usr/local/bin/op plugin run -- gh repo list $o --json name -q '.[] | .name' | while read -r repo; do | |
| dir=$o/$repo | |
| echo $dir | |
| if [ -d "$dir" ]; then | |
| (cd $dir && git stash --all && gh repo sync && git stash pop) | |
| else | |
| gh repo clone $dir $dir |
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
| const fs = require("fs"); | |
| const path = require("path"); | |
| const isDirectory = require("is-directory"); | |
| const isFile = require("is-file"); | |
| const fm = require("front-matter"); | |
| const arg = path.join(__dirname, process.argv[2]); | |
| const regex = /^\/.*\.*/; | |
| const readline = require("readline"); | |
| const iscontentblock = (str) => regex.test(str); |
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
| const fetchMachine = Machine({ | |
| id: 'INITIAL', | |
| initial: 'INITIAL', | |
| context:{ | |
| sufficientNotional: false, | |
| sufficientMarginal: false, | |
| instrumentCount: 0, | |
| editingInstrument: false, | |
| sufficientFunds: false |
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
| const fetchMachine = Machine({ | |
| id: 'empty', | |
| initial: 'empty', | |
| context:{ | |
| sufficientNotional: false, | |
| sufficientMarginal: false, | |
| instrumentCount: 0, | |
| editingInstrument: false | |
| }, |
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
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
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
| BEGIN MESSAGE. | |
| 34rmwjnYdFhUNh6 S7bGA8KbY5lNtE3 qA8n7ADhH70hIfP 2vek11iXborn7xt | |
| zLhcXQP1JAUSuYP ofAx0OpR9XLTCKq 6Xr2MZHgg4SaVzL wexF29qvvjWjLjs | |
| 8EXPEsVIxDbpaBT NfA1acJEhoMGypi sxXkaiPCdT6YLyD 5Ngmz1oRMqEDJhG | |
| Nti0BD7Ryx1ZEHW XgZMB2Tk00yZzde TsatW2IP. | |
| END MESSAGE. |
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
| brew "adns" | |
| brew "alexanderwillner/tap/things.sh" | |
| brew "ant" | |
| brew "antigen" | |
| brew "aria2" | |
| brew "asciinema" | |
| brew "asdf" | |
| brew "autoconf" | |
| brew "autojump" | |
| brew "automake" |
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
| <script> | |
| export let answer="" | |
| </script> | |
| <style> | |
| .encapsulated-style-here { | |
| color: red; | |
| } | |
| </style> |
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
| tap "alexanderwillner/tap" | |
| tap "bbc/audiowaveform" | |
| tap "buo/cask-upgrade" | |
| tap "d12frosted/emacs-plus" | |
| tap "ethereum/ethereum" | |
| tap "facebook/fb" | |
| tap "garden-io/garden" | |
| tap "github/gh" | |
| tap "heroku/brew" | |
| tap "homebrew/bundle" |
NewerOlder