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
export interface Collection { | |
type: "application/opds+json"; // must comply with this spec | |
links: Link[]; | |
} | |
// a feed is a collection since it has metadata, links and sub collections. | |
export interface Feed extends Collection { | |
// sub collections of with roles "navigation", "publication", "group" | |
navigation?: NavigationEntry[]; | |
publications?: PublicationEntry[]; | |
groups?: GroupEntry[]; |
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 tagTypes = { | |
Identifier: node => node, | |
CallExpression: node => node.callee, | |
MemberExpression: node => node.object, | |
}; | |
module.exports = (file, api, options) => { | |
const j = api.jscodeshift; | |
const ast = j(file.source); |
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 getContext from 'recompose/getContext' | |
const defaultDensity = 0.00008872; // multiply by height and width of canvas. | |
const defaultColor = ["#c5392a","#C0C0C0"]; | |
const LIFE_SPAN = 1500; | |
const SPEED_Y = 2; | |
const SPEED_X = 1; | |
const SPEED_MULTIPLIER = 1/10; |
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
// |
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 { connect } from 'react-redux'; | |
import scAx from '../utils/tracking'; | |
import { selectors } from '../redux/index'; | |
const SceneWrapper = ComposedComponent => class Wrapper extends React.Component { |