A JS development framework for building, testing, compiling, and deploying Solidity contracts.
This file contains 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, but with pretty syntax highlighting, git, and diff support
- chezmoi: Sync your dotfiles using a Git repo
- diff-so-fancy: better-looking diffs for modern terminals
- exa: ls, but pretty by default
- Fantasque Sans Mono: A lovely monospace font with ligatures and a friendly shape
- fasd: navigate between project directories really quickly
This file contains 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 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 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) |
This file contains 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
$ 1 0.000005 1.8479586061009856 50 5 43 | |
v 240 352 240 208 0 0 40 5 0 0 0.5 | |
s 400 288 400 352 0 0 false | |
d 320 288 400 288 1 0.001 | |
d 480 288 400 288 1 0.805904783 | |
r 320 288 320 208 0 100000 | |
w 400 352 320 352 0 | |
w 320 352 240 352 0 | |
w 240 208 320 208 0 | |
w 400 352 480 352 0 |