This file contains hidden or 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
| # vim:ft=zsh ts=2 sw=2 sts=2 | |
| # Must use Powerline font, for \uE0A0 to render. | |
| ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[magenta]%}\uE0A0 " | |
| ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
| ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}!" | |
| ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[green]%}?" | |
| ZSH_THEME_GIT_PROMPT_CLEAN="" | |
| ZSH_THEME_RUBY_PROMPT_PREFIX="%{$fg_bold[red]%}‹" |
This file contains hidden or 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
| call plug#begin('~/.vim/plugged') | |
| " file-browser inside of Vim | |
| Plug 'scrooloose/nerdtree', { 'on': ['NERDTreeToggle', 'NERDTreeFind'] } | |
| " on-demand loaded syntax highlighters for many languages | |
| Plug 'sheerun/vim-polyglot' | |
| " fuzzy file find | |
| Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } |
This file contains hidden or 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
| const retain = (obj, keys) => { | |
| const keepStr = keys.join(', '); | |
| const evalStr = `(() => {const {${keepStr}} = obj;return {${keepStr}};})()` | |
| return eval(evalStr); | |
| } | |
| const obj = {'k1': 'v1', 'k2': 'v2'}; | |
| const newObj = retain(obj, ['k2']); | |
| console.log(newObj); |
This file contains hidden or 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
| #include<mutex> | |
| #include<shared_mutex> | |
| #include<memory> | |
| #include<iostream> | |
| using namespace std; | |
| template<class T> |
This file contains hidden or 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
| call plug#begin('~/.vim/plugged') | |
| " file-browser inside of Vim | |
| Plug 'scrooloose/nerdtree' | |
| " fuzzy file find | |
| Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } | |
| Plug 'junegunn/fzf.vim' | |
| " atome one dark/light |