Declare two variables in function A, bring them to function B, then bring them back to function A
let funcA = (x = 0, y = 1) => {
console.log(`funcA`,x, y)
return [x, y];
}
let funcB = () => {
From this Gist, insert all the data to a database aggree
. You may use a MongoDB client of choice.
To do this in mongosh:
use aggree
Ctrl+Shift+P, F1 Show Command Palette | |
Ctrl+Enter Insert line below | |
Ctrl+Shift+Enter Insert line above | |
Ctrl+] / [ Indent/outdent line | |
Home/End Go to beginning/end of line | |
Ctrl+Home Go to beginning of file |
This is not intended as a tutorial. It is a reference on what every vi key binding does, followed by some useful vi tricks and tips. An expert will probably know most of these already, but an intermediate vi user will find valuable information, and even an expert may learn a thing or two. complete key binding reference
Key | Action | Followed by |
---|---|---|
a |
enter insertion mode after current character | text, ESC |
b |
back word | |
c |
change command | cursor motion command |
d |
delete command | cursor motion command |
e |
end of word |
# YAML cheat sheet | |
# Reference: https://www.youtube.com/watch?v=cdLNKUoMc6c | |
# object | |
person: | |
# string value. single/double quotes | |
# anchoring | |
name: &name "daniel" # anchor name doesn't have to be the same as key name | |
occupation: 'student' |
alias vim=nvim
to use 'vim' as an alias. ie: Run Neovim with the vim
command.echo 'alias vim=nvim' >> .zshrc
to save the alias to shell configuration. This command shown here only works for zsh.