Skip to content

Instantly share code, notes, and snippets.

View thiagoterleski's full-sized avatar

Thiago Terleski thiagoterleski

View GitHub Profile
<Provider store={store}>
{ /* Tell the Router to use our enhanced history */ }
<Router history={hashHistory}>
<Route path="/" component={App}>
<IndexRoute component={LoginPage} />
<Route path="login" component={LoginPage}/>
<Route path="crm" component={CRMContainer}>
<Route path="campaigns" component={CRMModuleCampaigns}>
<Route path=":action" component={CRMModuleCampaigns} />
</Route>
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead(100);