130 bytes, that's what it takes.
"header footer section aside nav article figure figcaption hgroup time main video".replace(/\w+/g,function(a){document.createElement(a)})
drag = 0; | |
logo.swapDepths(20); | |
MovieClip.prototype.bounceInit = function(id) { | |
this.accel =0.7; | |
this.convert = 1.5; | |
this.xpos = 0; | |
this.toX = this.sx=this._x; | |
this.ypos = 0; | |
this.toY = this.sy=this._y; | |
this.r = 10; |
LightPink1 #ffbdc5 255 189 197 {65535 | 48573 | 50629} | |
---|---|---|---|
pink4 #9d777f 157 119 127 {40349 | 30583 | 32639} | |
pink3 #d7a3ad 215 163 173 {55255 | 41891 | 44461} | |
pink2 #f2b9c4 242 185 196 {62194 | 47545 | 50372} | |
pink1 #ffc3cf 255 195 207 {65535 | 50115 | 53199} | |
HotPink4 #9e4f75 158 79 117 {40606 | 20303 | 30069} | |
HotPink3 #d878a1 216 120 161 {55512 | 30840 | 41377} | |
HotPink2 #f383b5 243 131 181 {62451 | 33667 | 46517} | |
HotPink1 #ff87c1 255 135 193 {65535 | 34695 | 49601} |
{ | |
"scripts": { | |
"test": "mocha -g", | |
"start": "babel-node server.js", | |
"prestart": "npm run build", | |
"build": "npm-run-all 'build:*'", | |
"build:js": "cross-env NODE_ENV=production browserify -t babelify -t envify src/app.js > static/build.js", | |
"postbuild:js": "uglifyjs static/build.js -o static/build.js", | |
"build:css": "cross-env NODE_ENV=production stylus css/main.styl -o static", | |
"watch": "npm-run-all --parallel 'watch:*'", |
import React, {Component, PropTypes} from "react" | |
import placesLoader from "./placesLoader" | |
import placesShape from "./placesShape" | |
import styles from "./GoogleMap.css" | |
import iconMarker from "./iconMarker.png" | |
import iconTrash from "./iconTrash.png" | |
const {arrayOf, func, number, shape, string} = PropTypes |
// @flow | |
import React from "react" | |
import Hoverable from "../../modules/Hoverable" | |
import Focusable from "../../modules/Focusable" | |
import Touchable from "../../modules/Touchable" | |
type PropsType = { | |
children?: React$Element<any>, |
Can't share the complete code because the app's closed source and still in stealth mode, but here's how I'm using React Router and Redux in a large app with server rendering and code splitting on routes.
addReducers()
callback available to the getComponents()
method of
each React Router route. Each route is responsible for adding any Redux
reducers it needs when it's loaded. (This isn't really necessary on theconst compose = (...fns) => fns.reduce((f, g) => (...args) => f(g(...args))) | |
// Usage : compose functions right to left | |
// compose(minus8, add10, multiply10)(4) === 42 | |
// | |
// The resulting function can accept as many arguments as the first function does | |
// compose(add2, multiply)(4, 10) === 42 |