Install software-properties-common
sudo apt-get install software-properties-common
Add Repo
sudo add-apt-repository ppa:olipo186/git-auto-deploy
// connect() is a function that injects Redux-related props into your component. | |
// You can inject data and callbacks that change that data by dispatching actions. | |
function connect(mapStateToProps, mapDispatchToProps) { | |
// It lets us inject component as the last step so people can use it as a decorator. | |
// Generally you don't need to worry about it. | |
return function (WrappedComponent) { | |
// It returns a component | |
return class extends React.Component { | |
render() { | |
return ( |
var app = require('express').createServer() | |
var io = require('socket.io').listen(app); | |
var fs = require('fs'); | |
app.listen(8008); | |
// routing | |
app.get('/', function (req, res) { | |
res.sendfile(__dirname + '/chat.html'); | |
}); |
Install software-properties-common
sudo apt-get install software-properties-common
Add Repo
sudo add-apt-repository ppa:olipo186/git-auto-deploy
#Setting up Nginx on Your Local System ###by Keith Rosenberg
##Step 1 - Homebrew The first thing to do, if you're on a Mac, is to install homebrew from http://mxcl.github.io/homebrew/
The command to type into terminal to install homebrew is:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Location: /etc/nginx/sites-available/domain.tld.conf | |
server { | |
listen 80; | |
# listen 443 ssl; | |
# include snippets/snakeoil.conf; | |
root /var/www/domain.tld/public; | |
index index.html index.php; |
.pulsate path { | |
stroke: #2980b9; | |
-webkit-animation: pulsate 5s ease-out; | |
-webkit-animation-iteration-count: infinite; | |
-moz-animation: pulsate 5s ease-out; | |
-moz-animation-iteration-count: infinite; | |
-ms-animation: pulsate 5s ease-out; | |
-ms-animation-iteration-count: infinite; | |
animation: pulsate 5s ease-out; | |
animation-iteration-count: infinite; |