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
| /** @flow */ | |
| declare type ExampleTuple = [string, string, string]; | |
| function concat(ex:ExampleTuple): string { | |
| return ex.join(' '); | |
| } | |
| concat(['hello', 'world', 'golly']); |
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
| waitsFor(_ => shoddyAsync, 'Jasmine Async sucks', 1000); |
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
| /** @flow */ | |
| import React from '../ReactHardware'; | |
| import Board from '../components/Board'; | |
| const pinMapping = { | |
| 'A0': 14, | |
| 'A1': 15, | |
| 'A2': 16, | |
| 'A3': 17, |
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
| /* @flow weak */ | |
| var AppDispatcher = require('./Dispatcher'); | |
| var Constants = require('./Constants'); | |
| var find = require('../utils/find'); | |
| var __APP_SERVER__ = 'http://localhost:3500'; | |
| var Cache = {}; | |
| var Actions = { |
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
| /** @flow */ | |
| require('./styles.css') | |
| var React = require('react'); | |
| var PureRenderMixin = require('react/lib/ReactComponentWithPureRenderMixin'); | |
| var {PropTypes} = React; | |
| var {Link} = require('react-router'); | |
| var shape = function(props) { |
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
| var express = require('express'); | |
| var app = express(); | |
| app.use('/api', require('../api')); | |
| app.get('*', function(req, res) { | |
| var resolver = Resolver.create(); | |
| var router = Router.create({ | |
| routes: resolver.route(routes), | |
| location: req.url, |
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
| /*eslint-disable*/ | |
| require('./JSPolyfills'); | |
| /*eslint-enable*/ | |
| import EventPluginHub from 'react/lib/EventPluginHub'; | |
| import EventPluginUtils from 'react/lib/EventPluginUtils'; | |
| import HardwareDefaultEventPluginOrder from './HardwareDefaultEventPluginOrder'; | |
| import HardwareBridgeEventPlugin from './HardwareBridgeEventPlugin'; | |
| import ReactClass from 'react/lib/ReactClass'; | |
| import ReactComponentEnvironment from 'react/lib/ReactComponentEnvironment'; |