A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
Add the following in .zshrc: | |
... | |
plugins=(osx git zsh-autosuggestions zsh-syntax-highlighting zsh-nvm docker kubectl) | |
... | |
### Fix slowness of pastes with zsh-syntax-highlighting.zsh | |
pasteinit() { | |
OLD_SELF_INSERT=${${(s.:.)widgets[self-insert]}[2,3]} | |
zle -N self-insert url-quote-magic # I wonder if you'd need `.url-quote-magic`? |
#!/bin/bash -eu | |
# (C) Timothy Jones | |
# This function prints the usage | |
function usage { | |
{ | |
echo "Usage:" | |
echo " ${BASH_SOURCE[0]} <NAME> <VALUE> <KEY_ID>" | |
echo " NAME - the name of the SSM variable" |
log
which is configured via an environment variable.const crypto = require('crypto') | |
const fs = require('fs') | |
const readline = require('readline') | |
const rl = readline.createInterface({ input: process.stdin, output: process.stdout }) | |
const prompt = (query) => new Promise((resolve) => rl.question(query, resolve)) | |
void (async () => { | |
const args = process.argv.slice(2) |