Git Log
$ git log --pretty=format:' %Cgreen(%cr) %Cred%h - %Creset %s %C(bold blue)<%an>%Creset' --follow {path/to/file}
# alias GitHub | |
alias ghb='hub browse $(ghq list | peco | cut -d "/" -f 2,3)' | |
alias ghp='gh pr list' | |
# alias git | |
alias gst='git status' | |
alias gb='git branch -vv' | |
alias gba='git branch -a' | |
alias gbd='git branch -D' | |
alias gf='hub sync' |
{ | |
"scripts": { | |
"clean": "node -e \"fs.promises.rm('script.js', {force: true})\"", | |
"clean": "node -e \"fs.promises.rm('../dist', {recursive: true, force: true})\"" | |
} | |
} |
// React Newline to break (nl2br) | |
{this.props.text.split('\n').map((item, key) => { | |
return <Fragment key={key}>{item}<br/></Fragment> | |
})} |
Git Log
$ git log --pretty=format:' %Cgreen(%cr) %Cred%h - %Creset %s %C(bold blue)<%an>%Creset' --follow {path/to/file}
$ git grep 'time_t' -- '*.[ch]'
Looks for time_t in all tracked .c and .h files in the working directory and its subdirectories.
$ git grep -e '#define' --and \( -e MAX_PATH -e PATH_MAX \)
Looks for a line that has #define and either MAX_PATH or PATH_MAX.
{ | |
"editor.codeActionsOnSave": { | |
"source.fixAll.stylelint": true | |
}, | |
"editor.formatOnSave": true, | |
"editor.defaultFormatter": "esbenp.prettier-vscode", | |
"css.validate": false, | |
"scss.validate": false, | |
"stylelint.validate": ["css", "scss"] | |
} |