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
| {"lastUpload":"2021-10-21T08:30:25.640Z","extensionVersion":"v3.4.3"} |
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
| "Plug list | |
| call plug#begin() | |
| " fzf | |
| Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } | |
| " airline | |
| Plug 'vim-airline/vim-airline' " vim status bar | |
| " git | |
| Plug 'airblade/vim-gitgutter' " git change status | |
| Plug 'tpope/vim-fugitive' " vim git wrapper | |
| " tree |
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
| // Refactoring 역활 병합 | |
| const Task = class{ | |
| constructor(title, date = null) { | |
| if(!title) throw 'invalid title'; | |
| this._title = title; this._date = date; this._isComplete = false; | |
| this._list = []; | |
| } | |
| // get title(){return this._title;} |
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
| // Refactoring 역활 병합 | |
| const Task = class{ | |
| constructor(title, date = null) { | |
| if(!title) throw 'invalid title'; | |
| this._title = title; this._date = date; this._isComplete = false; | |
| this._list = []; | |
| } |
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 Github = class { | |
| constructor(id, repo) { | |
| this._base = `https://api.github.com/repos/${id}/${repo}/contents/`; | |
| } | |
| load(path){ | |
| if(!this._parser) return; | |
| const id = 'callback' + Github.id++; | |
| const f = Github[id] = ({data:{content}}) => { | |
| delete Github[id]; |
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 Info = class { | |
| constructor(json){ | |
| const {title, header, items} = json; | |
| if(typeof title != 'string' || !title) throw 'invalid title'; | |
| if(!Array.isArray(header) || !header.length) throw 'invalid header'; | |
| if(!Array.isArray(items) || !items.length) throw 'invalid items'; | |
| this._private = {title, header, items}; | |
| } |
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
| set -g @plugin 'tmux-plugins/tmux-pain-control' | |
| set -g @plugin 'tmux-plugins/tmux-resurrect' | |
| set -g @plugin 'tmux-plugins/tmux-continuum' | |
| # for vim | |
| set -g @resurrect-strategy-vim 'Session' | |
| set -g @continuum-restore 'on' | |
| # remap prefix to Control + a | |
| set -g prefix C-a | |
| # bind 'C-a C-a' to type 'C-a' |
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 START_TAG = '<'; | |
| const END_TAG = '>'; | |
| const CLOSE_TOKEN = '/'; | |
| const textNode = (input, cursor, curr) => { | |
| const idx = input.indexOf(START_TAG, cursor); | |
| curr.tag.children.push({ | |
| type: 'text', text: input.substring(cursor, idx) | |
| }); |
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 generator = function*(i, j){ | |
| for( let x = 1 ; x <= i ; x ++ ) | |
| for( let y = 1 ; y <= j ; y ++ ) | |
| yield [x, y, x*y]; | |
| }; | |
| for(const [i, j, k] of generator(9,9)){ | |
| console.log(`${i} x ${j} = ${k}`); | |
| } |
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
| iptables -P INPUT ACCEPT | |
| iptables -P OUTPUT ACCEPT | |
| iptables -P FORWARD ACCEPT | |
| iptables -F |
NewerOlder