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
<div | |
data-analytics-asset-id="myBlogId" | |
data-analytics-asset-title="Blog Title" | |
data-analytics-asset-type="blog" | |
> | |
<h3>Bringing Ideas To Life: A Look Into Creative Writing</h3> | |
<p> | |
This blog explores the ways in which we can use creativity to bring our | |
ideas to life. We will be looking at techniques for how to inspire, generate |
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
/** | |
* Util Create DOM using literal templates | |
*/ | |
const createElement = tmpl => new DOMParser().parseFromString(tmpl, 'text/html').body.firstChild; | |
/** | |
* Util Object Builder | |
*/ | |
const builder = (newList = []) => { | |
let list = newList; |
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
query { | |
repository(name: "repo-name", owner: "owner") { | |
object(expression: "branch:file/to/path.extension") { | |
... on Blob { | |
text | |
} | |
} | |
} | |
} |
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
$color-belize-hole: #2980b9; | |
$color-amethyst: #9b59b6; | |
$color-wet-asphalt: #34495e; | |
$color-sun-flower: #f1c40f; | |
$lvls: ( | |
('easy', $color-sun-flower), | |
('normal', $color-amethyst), | |
('hard', $color-belize-hole), | |
('very-hard', $color-wet-asphalt) |
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
/** | |
* Object list language | |
*/ | |
const LANGUAGE = { | |
errors: 'errors', | |
hits: 'hits', | |
next: 'next', | |
ops: '🤦 Ops, try again!', | |
totalErrors: 'total erros', | |
totalHits: 'total hits', |
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
setStartGame() { | |
this.setNextOperation(); | |
this.setState({ | |
errors: 0, | |
finish: false, | |
hits: 0, | |
init: false, | |
message: '', | |
start: true |
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
created() { | |
this.state.countdown = this.props.countdown; | |
this.setLvl(this.props.lvlDefault); | |
this.setInitGame(); | |
} |
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
import '../style/mathematics.scss'; | |
import {Button, Layout, Operation} from './'; | |
import {LANGUAGE, CALCULATE, getRandomNumber} from '../utils/Utils'; | |
import {EventHandler} from 'metal-events'; | |
import Component, {Config} from 'metal-jsx'; | |
import dom from 'metal-dom'; | |
import position from 'metal-position'; | |
class Mathematics extends Component {}; |
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
<Button style={'primary'}> | |
<span class='icon icon-arrow-down' /> show more | |
</Button> |
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
<Button style={'primary'} onClick='handleOnClick' /> |
NewerOlder