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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
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 Route from "utils/route" | |
import Link from "utils/link" | |
import { Match, Redirect } from "react-router" | |
export default () => ( | |
<div> | |
{*/will wait for ./views/employers.js to load before changing route */} | |
<Link className='-active' to='/employers'>employers</Link> | |
<Match |
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 Header from './header' | |
import Lazy from 'utils/lazy' | |
import { BrowserRouter } from 'react-router' | |
export default () => ( | |
<BrowserRouter> | |
<div> | |
<Header /> | |
<Lazy | |
module={System.import('./footer')} |
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
Possible Unhandled Promise Rejection (id: 0): | |
this.H.INTERNAL.factories[a] is not a function |
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
var webpack = require('webpack') | |
var path = require('path') | |
module.exports = { | |
entry: { | |
main: ['babel-polyfill', './routers/client.jsx'], | |
}, | |
output: { | |
path: __dirname + '/public/assets/js/', | |
filename: '[name].js', |
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
return { | |
type: 'ajax', | |
url: 'http://google.com', | |
method: 'POST', | |
body: state => { | |
/* | |
return false will skip the request | |
and call .then with skip = true | |
useful if you call this action and no data has changed |
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
//server initialize with babel | |
require('babel-register')({ | |
"presets": [ | |
"react", | |
"es2015" | |
], | |
"plugins": [ | |
"transform-object-rest-spread", | |
"transform-class-properties" |
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 { connect } from 'react-redux' | |
export const binder = component => { | |
return class Binder extends React.Component { | |
static contextTypes = { | |
store: React.PropTypes.object | |
}; | |
render() { | |
let boundActions = {} | |
for(let action in component.actions) { |
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' | |
export default class Transition extends React.Component{ | |
static contextTypes = { | |
router: React.PropTypes.object | |
}; | |
constructor(props){ | |
super() | |
let opacity = 1 |
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-native'; | |
var Dimensions = require('Dimensions'); | |
var windowSize = Dimensions.get('window'); | |
import SafariView from 'react-native-safari-view' | |
var { | |
StyleSheet, | |
Text, | |
View, | |
TextInput, |