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
| var oldEPD = Event.prototype.preventDefault; | |
| Event.prototype.preventDefault = function() { | |
| debugger; | |
| oldEPD.call(this); | |
| }; |
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
| ### Keybase proof | |
| I hereby claim: | |
| * I am happylinks on github. | |
| * I am happylinks (https://keybase.io/happylinks) on keybase. | |
| * I have a public key whose fingerprint is C6BE A339 A34C BFA9 3555 CB4D 21FC DEF9 6BBA 3C10 | |
| To claim this, I am signing this object: |
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
| [ | |
| { | |
| "key": "ctrl+left", | |
| "command": "subwordNavigation.cursorSubwordLeft", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "ctrl+right", | |
| "command": "subwordNavigation.cursorSubwordRight", | |
| "when": "editorTextFocus" |
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
| // Place your settings in this file to overwrite the default settings | |
| { | |
| "editor.fontFamily": "Fira Code", | |
| "editor.fontSize": 12, | |
| "editor.fontLigatures": true, | |
| "editor.tabSize": 2, | |
| "editor.renderWhitespace": "all" | |
| } |
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 encoding=utf-8 | |
| call plug#begin() | |
| Plug 'rakr/vim-one' | |
| Plug 'scrooloose/nerdtree' | |
| Plug 'airblade/vim-gitgutter' | |
| Plug 'w0rp/ale' | |
| Plug 'ctrlpvim/ctrlp.vim' | |
| Plug 'sbdchd/neoformat' | |
| Plug 'maralla/completor.vim', {'do': 'cd pythonx/completers/javascript && npm 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
| ale | |
| completor.vim | |
| ctrlp.vim | |
| neoformat | |
| nerdtree | |
| vim-airline | |
| vim-airline-themes | |
| tern_for_vim | |
| vim-gitgutter | |
| vim-javascript |
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
| // https://github.com/ctrlplusb/react-async-component | |
| const AsyncProduct = createAsyncComponent({ | |
| resolve: () => import('./MyComponent'), | |
| Loading: MyLoadingComponent, | |
| // No error component | |
| // No delay | |
| ssrMode: 'render', // default | |
| }); | |
| vs |
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
| [user] | |
| email = happylinks@gmail.com | |
| name = Michiel Westerbeek | |
| [core] | |
| editor = vim | |
| [alias] | |
| # one-line log | |
| l = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short |
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
| rm ~/.vimrc | |
| cd ~ && wget https://gist.githubusercontent.com/happylinks/01c91c06fce6f653090263118136d003/raw/d6d827d46415b952de9e3fb3309dcea54cc7ec8d/.vimrc | |
| mkdir -p ~/.config/nvim/ | |
| ln -s ~/.vimrc ~/.config/nvim/init.vim | |
| curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \ | |
| https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |
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 editing-mode vi | |
| set keymap vi-command |