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
// called in app root js file | |
// Classes and functions we need to build the store and initial state | |
import { createStore, applyMiddleware } from 'redux'; | |
import createSagaMiddleware from 'redux-saga'; | |
import InitialStateBuider from './initial-state-builder'; | |
// Sagas and Reducers | |
import rootSaga from '../modules/root-saga'; | |
import rootReducer from '../modules/root-reducer'; |
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
{ | |
"Badges": [ | |
{ | |
"TemplateId": "BADGE_BATTLE_ATTACK_WON", | |
"Badge": { | |
"BadgeType": "BADGE_BATTLE_ATTACK_WON", | |
"BadgeRanks": 4, | |
"Targets": [10, 100, 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
[ { | |
"Date" : "2016-07-30", | |
"Data" : { | |
"Moves" : [ | |
{ "ID" : 13, "Key" : "Power", "Old Value" : 15, "New Value" : 25 }, | |
{ "ID" : 14, "Key" : "Power", "Old Value" : 70, "New Value" : 120 }, | |
{ "ID" : 18, "Key" : "Power", "Old Value" : 25, "New Value" : 30 }, | |
{ "ID" : 20, "Key" : "Power", "Old Value" : 15, "New Value" : 25 }, | |
{ "ID" : 21, "Key" : "Power", "Old Value" : 35, "New Value" : 40 }, | |
{ "ID" : 22, "Key" : "Power", "Old Value" : 55, "New Value" : 80 }, |
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
import React, { PropTypes } from 'react'; | |
import { TransitionMotion, spring } from 'react-motion'; | |
/** | |
* One example of using react-motion (0.3.0) within react-router (v1.0.0-rc3). | |
* | |
* Usage is simple, and really only requires two things–both of which are | |
* injected into your app via react-router–pathname and children: | |
* | |
* <RouteTransition pathname={this.props.pathname}> |
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
#import <UIKit/UIKit.h> | |
#import <SceneKit/SceneKit.h> | |
#import <OpenGLES/ES2/gl.h> | |
#import <OpenGLES/ES2/glext.h> | |
@interface View : UIView | |
@property (strong, nonatomic) SCNScene *scene; | |
- (void)renderFrame; |
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
function deg2rad(deg) { | |
return deg * Math.PI / 180; | |
} | |
function annularSector(centerX, centerY, startAngle, endAngle, innerRadius, outerRadius) { | |
startAngle = deg2rad(startAngle + 180); | |
endAngle = deg2rad(endAngle + 180); | |
var p = [ | |
[centerX + innerRadius * Math.cos(startAngle), centerY + innerRadius * Math.sin(startAngle)] |
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
/*! | |
* JavaScript function to calculate the destination point given start point latitude / longitude (numeric degrees), bearing (numeric degrees) and distance (in m). | |
* | |
* Original scripts by Chris Veness | |
* Taken from http://movable-type.co.uk/scripts/latlong-vincenty-direct.html and optimized / cleaned up by Mathias Bynens <http://mathiasbynens.be/> | |
* Based on the Vincenty direct formula by T. Vincenty, “Direct and Inverse Solutions of Geodesics on the Ellipsoid with application of nested equations”, Survey Review, vol XXII no 176, 1975 <http://www.ngs.noaa.gov/PUBS_LIB/inverse.pdf> | |
*/ | |
function toRad(n) { | |
return n * Math.PI / 180; | |
}; |