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
var React = require('react'); | |
var statesObj = { | |
'Arkansas': [ | |
'County name', | |
'Another county' | |
], | |
'California': [ | |
'Some hippy county', | |
'Weed growing county' |
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
const getCurrentTileLayer = year => L.tileLayer(`https://storage.googleapis.com/planet-bigspringsmap-tiles/${year}tiles/{z}/{x}/{y}.png`, {tms: true, attribution: ''}); | |
getCurrentTileLayer(2007); | |
// L.tileLayer('https://storage.googleapis.com/planet-bigspringsmap-tiles/2007tiles/{z}/{x}/{y}.png', {tms: true, attribution: ''}); |
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
- | |
- | |
- | |
- | |
- | |
- | |
- | |
- | |
- | |
- |
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
const user = 'foo'; | |
// option 1: actions first | |
const defaultState = { | |
loading: false, | |
error: null, | |
properties: user | |
}; |
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
{ | |
"Nintendo": [ | |
{ | |
"name": "N64", | |
"year": 1996, | |
"price": 289, | |
"sales": 32.93 | |
}, | |
{ | |
"name": "Gamecube", |
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
language: node_js | |
node_js: 8 | |
cache: | |
directories: | |
- node_modules | |
before_deploy: | |
- npm run build | |
deploy: | |
provider: s3 | |
region: us-west-2 |
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 React, {Component} from 'react'; | |
import PropTypes from 'prop-types'; | |
export default class ReadMoreLess extends Component { | |
static propTypes = { | |
text: PropTypes.string.isRequired | |
}; | |
state = { | |
expanded: false |
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
Contrivance | overdone artificial unnecessary | adjective | |
---|---|---|---|
Talking point | a misdirected argument that does not address the main component of someone else's counterpoint | adjective | |
Machination | a plot or scheme | adjective | |
Meta | self referential or self inception | adjective | |
Case study | a particular instance of something being used as reference for thesis and study | adjective | |
Deficit | the amount by which something is too small or a failing or deficiency in the brain | adjective | |
Vowel | a letter representing a vowel sound, such as: a i e o u | adjective | |
Consonant | the sound in speech of every other letter except vowels | adjective | |
Syllable | spaces between words | adjective | |
Tertiary | third in order or level | adjective |
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 PropTypes from 'prop-types'; | |
import React from 'react'; | |
import {formatMoney} from '../utils/format'; | |
import {withTheme} from '@material-ui/core/styles'; | |
function Diff(props) { | |
if (!props.value) { | |
return <span>Even</span>; | |
} |
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
<!-- | |
use getUserStats as the form's submit handler | |
so that users can press "enter" in the text input | |
--> | |
<form onsubmit="getUserStats"> | |
<input type="text" name="username"> | |
<button type="submit"> | |
</form> |
OlderNewer