go test ./...
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
554: export PS1="\[$(tput setaf 45)\]\W\[$(tput setaf 199)\]\$(git_branch)\[\e[0m$(tput setaf 190)\]\$\e[0m \[$(tput sgr0)\]\[\e[0m\]" |
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
// Example of test pyramid using jest | |
// Basic usage: | |
// jest --selectProjects 'unit tests' | |
// Assumes that you organize tests under __${type}_tests__/**/*.js | |
// | |
const path = require('path'); | |
const correctPath = value => path.resolve(__dirname, value || ''); |
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
git config core.sshCommand "ssh -i ~/.ssh/id_rsa_example -F /dev/null" |
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
#!/usr/bin/env bash | |
set -e | |
OLD_DATE="$(git show HEAD -q | grep Date | cut -d: -f2-)" | |
NEW_DATE="$(date)" | |
OLD_HASH=$(git show HEAD -q | head -1 | awk '{print $2}') | |
pretty() { | |
colorcode="${1}" | |
shift | |
string="${*}" |
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
sudo xattr -d com.apple.quarantine /Applications/Emacs.app |
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
Black Lives Matter! | |
Please check out ways you can help out the movement: | |
https://blacklivesmatters.carrd.co/ |
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 E(BaseException): | |
def __new__(cls, *args, **kwargs): | |
return cls | |
def a(): yield | |
a().throw(E) |