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
"use strict"; | |
import React, { Component, PropTypes } from "react"; | |
import { render } from "react-dom"; | |
class Inputfield extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { value: this.props.value }; | |
this.handleChange = this.handleChange.bind(this); | |
} |
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 googleMapsClient = require('@google/maps').createClient({ | |
key: process.env.GOOGLE_SERVER_KEY, | |
}); | |
module.exports.placesAutoComplete = (input, type) => | |
new Promise((resolve, reject) => | |
googleMapsClient.placesAutoComplete({ | |
input, | |
type, | |
}, (error, res) => { |
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
/** | |
* Primary application logic for our Functional Programming blog example | |
* See related blog series at: http://www.datchley.name/tag/functional-programming/ | |
* Version: 2.0 | |
*/ | |
// A simple, resuable comparison for '>=' | |
function greaterThanOrEqual(a, b) { | |
return a >= b | |
} |
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 path = require("path"); | |
var webpack = require("webpack"); | |
module.exports = { | |
devtool: "eval-source-map", | |
entry: [ | |
"webpack-hot-middleware/client", | |
"./src/scripts/App.js" | |
], | |
output: { |
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
Rails app | |
http://docs.railsbridge.org/job-board/job-board | |
PostgreSQL | |
https://www.digitalocean.com/community/tutorials/how-to-setup-ruby-on-rails-with-postgres | |
http://www.cyberciti.biz/faq/howto-add-postgresql-user-account/ | |
https://kkob.us/2016/01/09/homebrew-and-postgresql-9-5/ | |
Rails routing | |
http://guides.rubyonrails.org/routing.html |
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
"use strict"; | |
import { connect } from "react-redux"; | |
import { oauth } from "../../actions/auth_actions"; | |
import "./facebook.css"; | |
const Facebook = ({ dispatch }) => ( | |
<button | |
className="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect facebook" | |
onClick={ev => { | |
ev.preventDefault(); |
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
'use strict' | |
const express = require('express') | |
const bodyParser = require('body-parser') | |
const todos = require('./todos') | |
require('./env') | |
const app = express() | |
app.use(bodyParser.json()) | |
app.use(express.static('public')) |
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
Show hidden characters
{ | |
"presets": ["es2015", "react"] | |
} |