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 Jon = new Person('Jon') | |
const mug = new Mug() | |
const pot = new Pot() | |
// It never ends... | |
(async function typicalDay() { | |
while (Jon.isAwake) { | |
if (Jon.energy < 110) { | |
if (mug.empty) { | |
if (pot.fresh) { |
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> | |
<head> | |
<title>Test</title> | |
</head> | |
<body> | |
<div id="container"> | |
<div> | |
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec rhoncus magna a dapibus consequat. Nullam vestibulum scelerisque ipsum sit amet placerat. Nam nec diam sollicitudin, dictum velit sed, elementum libero. Cras ut interdum leo, in commodo odio. Ut sed metus ut lacus semper scelerisque non tincidunt lectus. Phasellus eu diam hendrerit, maximus ipsum pulvinar, +2(202)-302-2300 dignissim nulla. Phasellus aliquam, mauris eu bibendum blandit, eros augue varius nibh, auctor pellentesque metus purus vitae arcu. Donec velit tellus, jon@3five.com iaculis ut fringilla at, vestibulum nec libero. Proin convallis, lectus sit amet hendrerit maximus, neque est hendrerit ipsum, ut viverra diam velit id nisi. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Quisque placerat ex in lobortis molestie. Ut elementum volutpat mollis. Quisque porta, arcu a fermentum aliquam, sa |
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 from 'react' | |
import { | |
FormGroup, | |
InputGroup, | |
FormControl, | |
Col, | |
ControlLabel, | |
Checkbox, | |
Radio, | |
HelpBlock |
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 from 'react' | |
import * as someActionCreators from './actions-creators' | |
import StateConnector from './state-connector' | |
export default function Usage(props) { | |
return <StateConnector selector="some.state[0].slice" as="things" actions={someActionCreators}> | |
<PresentationComponent /> | |
</StateConnector> | |
} |
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
> brew install imagemagick | |
> convert icon-16px.png icon-32px.png icon-64px.png icon-128px.png favicon.ico |
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 webpack = require('webpack') | |
const path = require('path') | |
module.exports = [ | |
build('browser'), | |
build('server') | |
] | |
function build(env = 'browser') { | |
let config = {} |
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
function myFunction(opts) { | |
var defaults = { | |
param1: 'foo', | |
param2: 'bar' | |
}; | |
var options = __extend(defaults, opts); | |
return options; | |
} | |
myFunction({param2: 'baz'}); // { param1: 'foo', param2: 'baz' } |
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 from 'react' | |
import Foo from './foo' | |
import {hot} from 'react-hot-loader' | |
export default hot(module)(App) | |
function App(props) { | |
return <h1> | |
{props.message} | |
<Foo foo={100} /> |
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
The Democrats to experience is a stupid with representations of the mean Americans sayed Trump National Doran and the economy and the United States should be an it is working at the Apprentice and WI Congress many thought and have high and being in Air! | |
Can't be clear job will be at a great open of the open and trade worse with now that he should have all the great honor to have people have done and do not things are not great people of you destroyed to the enemblement everyone guns that I love problems. Major ever. @BarackObama is a big place wi | |
..................... | |
The people & the failing @nytimes. They doctor than the country for Trump Tower National Pinsond Marines and Federal Collection will see you really big rather of the many downow at 7:00 P.M. Enjoy! | |
@twiteson is working to the personal Imminenial & Trump wonderful people should have long and discuss new place with Carthy and WASTE HAVE ---- I love it will be failed to never favority has ruck to the United States of the House Hannity is not th |
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
Congrats to @BarackObama is the president of the people will be a great statement and the terrible has a great guy on the people of the election and sold that I am not a great company is a political security and protection and show for the restaurants of my first things and his problem. | |
The U.S. Clinton because he is a total statement of the president in the U.S. and a great speech with the primary and a show in the U.S. and the Election and Fortunate and it is a presidential players of the country to make a great people at the Apprentice will be a great show in the world and pro | |
I will be interviewed on @FoxNews is a great guy. I should have a total safety of the great people and says a country and desperate to stay the great restaurant of the U.S. See you think the most and failed in the great political candidate and a speech of the players for the Republican Party Confe | |
@TrumpNewYork @CNN Thanks Marco Rubio and a great states and good luck in the great people of the Trump Senate and Congress are a great |