The use of __main__.py
to create executables
myprojectfolder/
|_ __main__.py
|_ __init__.py
Being __main__.py
:
print("Hello")
; The sample to refactor | |
(if-let [x (foo)] | |
(if-let [y (bar x)] | |
(if-let [z (goo x y)] | |
(do | |
(qux x y z) | |
(log "it worked") | |
true) | |
(do | |
(log "goo failed") |
The use of __main__.py
to create executables
myprojectfolder/
|_ __main__.py
|_ __init__.py
Being __main__.py
:
print("Hello")
$/
artifacts/
build/
docs/
lib/
packages/
samples/
src/
tests/
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`? |