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
| 046f9979d118412339318d89c60da9261acd79b0a956b84c4331916ee11912c4a5569f5406cb3f34e3c1244a3e7d236a6117b69f1c9422364d53fbf3138b865f03 |
A JS development framework for building, testing, compiling, and deploying Solidity contracts.
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
| KEYS_ON_LEFT_HAND = 'qwertasdfgzxcv' | |
| def alternating?(iterable) | |
| return true if iterable.count < 2 | |
| return false if !!iterable[0] == !!iterable[1] | |
| alternating? iterable.drop 1 | |
| end | |
| def key_on_left_hand(word) | |
| word.downcase.chars.map { |l| KEYS_ON_LEFT_HAND.include? l } |
-
Sandi Metz: You're Insufficiently Persuasive
How do you get people to do what you want? Why do we fight with people when we all want the same thing? -
Chad Fowler: Growing Old
No one will remember your code when you die. Then, what will your legacy be? How do we leave a dent in our fellow humans?
These are my favorite tools for making my terminal a nice place to work.
- bat:
cat, with syntax highlighting, git, and diff support - chezmoi: Sync your dotfiles using a Git repo
- diff-so-fancy: better-looking diffs for modern terminals
- eza:
ls, but pretty by default
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 | |
| # http://redsymbol.net/articles/unofficial-bash-strict-mode/ | |
| set -euo pipefail | |
| IFS=$'\n\t' | |
| set -x | |
| # http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html | |
| # Default settings work great for screencasts. For video from an actual camera, set MOTION=1. | |
| MOTION=${MOTION:-} |
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
| NOT PLANNED ON A WHIM STIR FRY | |
| And you couldn't bring eggs because you motorcycled to the store | |
| PRE-PREP: | |
| 1. Go to Asian grocery with no recipe in mind and assorted leftovers | |
| 2. Buy what looks colorful and good | |
| 3. Get home and find carrots in crisper | |
| PREP: | |
| Pre-cook pork |
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
| class Breaker | |
| def initialize(threshold, debug = false) | |
| @active = true | |
| @fails = 0 | |
| @threshold = threshold | |
| @debug = debug | |
| @on_trip = nil | |
| end | |
| def on_trip(&block) |