http://docs.aws.amazon.com/AmazonVPC/latest/GettingStartedGuide/GetStarted.html
phpMyAdmin
Type | Protocol | Port Range | Destination |
---|---|---|---|
SSH | TCP | 22 | 0.0.0.0/0 |
http://docs.aws.amazon.com/AmazonVPC/latest/GettingStartedGuide/GetStarted.html
phpMyAdmin
Type | Protocol | Port Range | Destination |
---|---|---|---|
SSH | TCP | 22 | 0.0.0.0/0 |
<?php | |
class BlogController extends Controller | |
{ | |
/** | |
* Posts | |
* | |
* @return void | |
*/ | |
public function showPosts() |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
var Index = React.createClass({ | |
getInitialState: function () { | |
return { | |
lastPress: 0 | |
} | |
}, | |
onPress: function () { | |
var delta = new Date().getTime() - this.state.lastPress; |
import React, { Component, PropTypes } from "react"; | |
class SocketProvider extends Component { | |
constructor(props, context) { | |
super(props, context); | |
this.socket = context.socket; | |
} | |
render() { | |
return ( |
export default class Api { | |
static headers() { | |
return { | |
Accept: "application/json", | |
"Content-Type": "application/json" | |
}; | |
} | |
static get(route) { | |
return this.request(route, null, "GET"); |
First install Brew on your MAC
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew tap homebrew/dupes
brew tap homebrew/php
brew install php70
mcrypt
: brew install mcrypt php70-mcrypt
brew install composer
This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :
Based off of: http://docs.sequelizejs.com/en/1.7.0/articles/express/
Create and initialize your a directory for your Express application.
$ mkdir sequelize-demo
// Destructuring cleans it up a bit | |
const { postCatalogues, updateCatalogues } = this.props; | |
const { catalogueName, activeStatusValidation } = formValidation; | |
// Bail early | |
if (catalogueName || activeStatusValidation) return; | |
// Model the data to avoid a switch - this makes more sense to me - seems more clear - you could even take this out of | |
// this method completely and include it as a property on the React component, as you may end up with more than add and edit, | |
// and perhaps it will be needed elsewhere? |