import { html, render } from 'lit'
import { provide, connect } from './unlit'
const app = provide(store)( () => html`<div>${counter}</div>` )
const counter = connect('count', {
This file contains 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
ack -f --type=cc --type=js | xargs gsed -i '1 i\// @flow' |
This file contains 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+1 ctrl+1", | |
"command": "workbench.action.toggleSidebarVisibility" | |
}, | |
{ | |
"key": "alt+/", | |
"command": "editor.action.commentLine", | |
"when": "editorTextFocus" | |
}, |
This file contains 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
'atom-workspace': | |
'ctrl-v': 'pane:split-right-and-copy-active-item' | |
'ctrl-w': 'window:focus-next-pane' | |
'.platform-darwin atom-text-editor': | |
'cmd-e':'nuclide-quick-open:find-anything-via-omni-search' | |
'.platform-darwin atom-workspace': | |
'cmd-1': 'nuclide-side-bar:toggle' |
This file contains 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
let bar a b => a + b; | |
let b = bar 1 2; | |
let baz a b => bar a b; | |
let b2 = baz 1 2; | |
Js.log (b, b2); |
This file contains 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": "alt+\\ alt+\\", | |
"command": "workbench.action.toggleSidebarVisibility" | |
}, | |
{ | |
"key": "cmd+2", | |
"command": "workbench.action.focusSideBar" | |
}, | |
{ |
This file contains 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
Show hidden characters
{ | |
"presets": [ | |
"babili" | |
], | |
"plugins": [ | |
[ | |
"transform-react-jsx", | |
{ | |
"pragma": "h" // default pragma is React.createElement | |
} |
This file contains 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
{ | |
"didInsertElement": { | |
"prefix": "didInsertEl", | |
"body": ["didInsertElement(...args){", "\tthis._super(args);", "\t$0", "}"] | |
}, | |
"init": { | |
"prefix": "init", | |
"body": ["init(...args){", "\tthis._super(args);", "\t$0", "}"] | |
}, | |
"didReceiveAttrs": { |
This file contains 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
/** | |
* How I think about default values in JavaScript | |
* | |
* First of all, all these things can fall under the Opinions, Concerns, and Nitpick | |
* umbrella. The most important thing is just giving thought to the things | |
* you have opinions about and always reserve the right to be corrected. | |
* | |
* My simple rule of thumb is to try to set initial state to whatever the | |
* eventual state will be for Objects and Arrays. | |
* |
This file contains 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
NODE_OPTIONS="--max-old-space-size=8192" yarn --network-timeout 100000 |