SPC
SPCfind file,switch bufferA.browse files:MX;EX<switch buffer
| " If on Mac run: | |
| " brew install ripgrep | |
| " Install CtrlP of course | |
| " Plug 'ctrlpvim/ctrlp.vim' | |
| if executable('rg') | |
| set grepprg=rg\ --color=never | |
| let g:ctrlp_user_command = 'rg %s --files --color=never --glob ""' | |
| let g:ctrlp_use_caching = 0 | |
| else |
| const { withStateHandlers } = Recompose; | |
| const Counter = ({ count, increment, decrement }) => | |
| <div> | |
| Count: {count} | |
| <div> | |
| <button onClick={increment}>+</button> | |
| <button onClick={decrement}>-</button> | |
| </div> | |
| </div>; |
| const I = x => x; | |
| const K = x => y => x; | |
| const A = f => x => f(x); | |
| const T = x => f => f(x); | |
| const W = f => x => f(x)(x); | |
| const C = f => y => x => f(x)(y); | |
| const B = f => g => x => f(g(x)); | |
| const S = f => g => x => f(x)(g(x)); | |
| const P = f => g => x => y => f(g(x))(g(y)); | |
| const Y = f => (g => g(g))(g => f(x => g(g)(x))); |
| Array.range = (from, to, step) => Array.from( | |
| { length: Math.floor((to - from) / step) + 1 }, | |
| (v, k) => from + k * step | |
| ); | |
| const testArr = Array.range(0,10,1); | |
| const modulo = (x, n) => x % n; | |
| // Check last two digits if are certain teens | |
| const isTeenTh = n => [10, 11, 12, 13, 14, 15, 16, 17, 18, 19].includes(n % 100) | |
| // for ordinal 'st' |
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
| [ | |
| { | |
| "id": 1, | |
| "name": "Leanne Graham", | |
| "username": "Bret", | |
| "email": "Sincere@april.biz", | |
| "address": { | |
| "street": "Kulas Light", | |
| "suite": "Apt. 556", | |
| "city": "Gwenborough", |
| // | |
| const updateState = (valueToUse): void => { | |
| this.setState(prevState => ({ | |
| jasper: { | |
| // object that we want to update | |
| ...prevState.jasper, // keep all other key-value pairs | |
| name: valueToUse // update the value of specific key | |
| } | |
| })); | |
| }; |
| SPC | |
| SPC: find file | |
| , switch buffer | |
| . browse files | |
| : MX | |
| ; EX | |
| < switch buffer | |
| ` eval | |
| u universal arg | |
| x pop up scratch |
| env: | |
| TERM: xterm-256color | |
| WINIT_X11_SCALE_FACTOR: "1.0" | |
| custom_cursor_colors: true | |
| cursor: | |
| style: Block | |
| unfocused_hollow: true |