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, { PropTypes } from 'react' | |
import { createStore } from 'redux' | |
import { Provider, connect } from 'react-redux' | |
import Router from 'react-router/BrowserRouter' | |
import Match from 'react-router/Match' | |
import Link from 'react-router/Link' | |
import { compose, getContext } from 'recompose'; | |
const store = createStore((s = {}, a) => s) |
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 Pricing = React.createClass({ | |
// ... | |
render() { | |
// ... | |
return ( | |
<div className="pricing" style={{ opacity: purchasing ? 0.25 : '' }}> | |
{purchaseError ? ( | |
<div className="purchase-complete"> | |
<h2 style={{ color: 'hsl(10, 50%, 50%)' }}>Oops!</h2> | |
<p> |
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
module Main where | |
import Control.Monad.Eff | |
import Data.Array (replicate, (!!), updateAt) | |
import Data.Maybe.Unsafe (fromJust) | |
import Data.Nullable (toMaybe) | |
import Prelude | |
import DOM.HTML (window) | |
import DOM.HTML.Document (body) |
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
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel | |
// MIT license | |
if (process.browser) { | |
let window = global.window; | |
let lastTime = 0; |