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 { createStore, applyMiddleware, compose } from 'redux'; | |
import request from 'superagent-es6-promise'; | |
import thunkMiddlware from 'redux-thunk'; | |
import promiseMiddleware from 'redux-promise'; | |
import logMiddleware from './middleware/log'; | |
import requestMiddleware from './middleware/request'; | |
// Create request middleware with our execute logic, return promise. | |
const executeRequestMiddleware = requestMiddleware((req, getState) => { | |
const { session: { token } } = getState(); |
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 from 'react/addons'; | |
import QuestionListItem from './QuestionListItem.react'; | |
import MessageComposer from './MessageComposer.react'; | |
import { Parse } from 'parse'; | |
import ParseReact from 'parse-react'; | |
import ReactMixin from 'react-mixin'; | |
import ActionCreators from '../../actions/ActionCreators'; | |
import RouterContainer from '../../services/RouterContainer'; | |
import QuestionStore from '../../stores/QuestionStore'; |
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
// Searching for a toString() method in Swift? Use the printable protocol! | |
// Implement Printable protocol and create a description variable | |
// https://developer.apple.com/library/ios/documentation/General/Reference/SwiftStandardLibraryReference/Printable.html | |
class Person : Printable { | |
var name : String! | |
init(name : String) { | |
self.name = name | |
} |