function routine(){
var counter = 3;
asyncThing(function(){
// Do stuff
done();
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 key bindings in this file to overwrite the defaults | |
| [ | |
| { | |
| "key": "ctrl+shift+\\", | |
| "command": "editor.action.selectToBracket" | |
| }, | |
| { | |
| "key": "ctrl+\\", | |
| "command": "editor.action.jumpToBracket", | |
| "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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>ANSIBlueColor</key> | |
| <data> | |
| YnBsaXN0MDDUAQIDBAUGBwpYJHZlcnNpb25ZJGFyY2hpdmVyVCR0b3BYJG9iamVjdHMS | |
| AAGGoF8QD05TS2V5ZWRBcmNoaXZlctEICVRyb290gAGjCwwTVSRudWxs0w0ODxARElVO | |
| U1JHQlxOU0NvbG9yU3BhY2VWJGNsYXNzTxAcMC41MDk4MDM5MjE2IDAuNjY2NjY2NjY2 | |
| NyAxABACgALSFBUWF1okY2xhc3NuYW1lWCRjbGFzc2VzV05TQ29sb3KiFhhYTlNPYmpl |
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
| /* | |
| To avoid a lot of conditional checks on all consumer components, | |
| what if we had a hook to conditionally render from a context's data? | |
| */ | |
| // I wonder if this will work. Totally untested, but it's a concept. | |
| function ConsumerComponent() { | |
| const data = useContext(SomeContext); | |
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
| <!DOCTYPE html> | |
| <html lang="en" data-framework="ironjs"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | |
| <title>IronJS • TodoMVC</title> | |
| <link rel="stylesheet" href="https://unpkg.com/todomvc-common/base.css" /> | |
| <link rel="stylesheet" href="https://unpkg.com/todomvc-app-css/index.css" /> | |
| </head> |
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 | |
| { | |
| "terminal.integrated.shellArgs.osx": [ | |
| "-l" | |
| ], | |
| "workbench.iconTheme": "eq-material-theme-icons", | |
| "workbench.colorTheme": "Material Theme High Contrast", | |
| "editor.minimap.enabled": true, | |
| "editor.rulers": [ | |
| 75, |
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
| { | |
| "Arrow Function": { | |
| "prefix": "af", | |
| "body": ["(${1}) => ${2:{${0}\\}}"], | |
| "description": "Creates a ES6 arrow function." | |
| }, | |
| "Anonymous Function": { | |
| "prefix": "fun", | |
| "body": ["function(${1}) {\n\t${0}\n}"], | |
| "description": "Creates an anonymous function." |
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
| { | |
| "semi": false, | |
| "useTabs": true, | |
| "singleQuote": true, | |
| "trailingComma": "es5" | |
| } |
I hereby claim:
- I am samholmes on github.
- I am samuelholmes (https://keybase.io/samuelholmes) on keybase.
- I have a public key ASBktmOfBDhauAEOLQGe3gG2G2BC3QNcr9TuZR98hkzLUgo
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
| // Rather than this | |
| function reducer(state, action) { | |
| switch (action.type) { | |
| case 'TODO_ADD': { | |
| return applyAddTodo(state, action) | |
| } | |
| case 'TODO_TOGGLE': { | |
| return applyToggleTodo(state, action) | |
| } | |
| default: |
NewerOlder