SPC
SPC
find file,
switch bufferA.
browse files:
MX;
EX<
switch buffer
background-color: #ffcc00; | |
.yunexCustomBodyWrap { | |
outline: 3px solid green; | |
} | |
h1 { | |
background-color: #6f5cd5; | |
height: 100%; | |
cursor: auto; |
{ | |
"version": "1.2.3", | |
"name": "Sharing Provider", | |
"description": "A Scooter Sharing Widget Definition", | |
"size": "sm", | |
"title": [ | |
"Scooter", | |
"Roller" | |
], | |
"trafficType": "scooter", |
{ | |
"root": true, | |
"env": { | |
"browser": true, | |
"es2021": true | |
}, | |
"extends": ["airbnb-base", "airbnb/rules/react", "prettier"], | |
"parserOptions": { | |
"ecmaVersion": "latest", | |
"sourceType": "module", |
env: | |
TERM: xterm-256color | |
WINIT_X11_SCALE_FACTOR: "1.0" | |
custom_cursor_colors: true | |
cursor: | |
style: Block | |
unfocused_hollow: true |
SPC | |
SPC: find file | |
, switch buffer | |
. browse files | |
: MX | |
; EX | |
< switch buffer | |
` eval | |
u universal arg | |
x pop up scratch |
// | |
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 | |
} | |
})); | |
}; |
[ | |
{ | |
"id": 1, | |
"name": "Leanne Graham", | |
"username": "Bret", | |
"email": "Sincere@april.biz", | |
"address": { | |
"street": "Kulas Light", | |
"suite": "Apt. 556", | |
"city": "Gwenborough", |
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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' |