React:
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
import isProduction from './is-production'; | |
const placeholderRe = /:([A-Za-z0-9_]+)\??/; | |
const allPlaceholdersRe = new RegExp(placeholderRe, 'g'); | |
function getType(val) { | |
return Array.isArray(val) ? 'array' : typeof val; | |
} | |
/** |
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
/* eslint-disable no-console */ | |
// "babel-core": "^6.24.1", | |
// "glob": "^7.1.2", | |
// "lodash": "^4.17.4", | |
// "babel-plugin-syntax-dynamic-import": "^6.18.0", | |
// "babel-plugin-transform-class-properties": "^6.24.1", | |
// "babel-plugin-syntax-decorators": "^6.13.0", | |
// "babel-preset-es2015": "^6.24.1", | |
// "babel-preset-react": "^6.24.1", |
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
import {Provider} from 'react-redux'; | |
// ... rest of imports | |
const RootContainer = ({store, history}) => { | |
return ( | |
<Provider store={store}> | |
<Routes history={history} /> | |
</Provider> | |
); | |
}; |
Spell check:
z=
: show suggestions
Install git w/ brew (using v2.9.0 as of writing this).
-
Go to class: ⌘ + n
-
Go to file: ⌘ + ⇧ + n
-
Search everywhere: ⌘ + p
-
Recent fiels: ⌘ + e
-
Go to symbol (above + any props or method): ⌘ + ⇧ + ⌥ + n
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Color Wars</title> | |
<style> | |
body { | |
font-family: sans-serif; | |
} |
NewerOlder