start new:
tmux
start new with session name:
tmux new -s myname
First you need to install nodejs either from http://nodejs.org/ or using nvm node version manager tool.
https://github.com/facebookincubator/create-react-app is a better way to scaffold react app, so give it a try
| # This is example contains the bare mininum to get nginx going with | |
| # unicorn servers. Generally these configuration settings | |
| # are applicable to other HTTP application servers (and not just Ruby | |
| # ones), so if you have one working well for proxying another app | |
| # server, feel free to continue using it. | |
| # | |
| # The only setting we feel strongly about is the fail_timeout=0 | |
| # directive in the "upstream" block. max_fails=0 also has the same | |
| # effect as fail_timeout=0 for current versions of nginx and may be | |
| # used in its place. |
| # Your directory path where all files are there which you want to rename | |
| # without trailing / (slash) | |
| dir_path = "your/dir/path/goes/here" | |
| Dir.glob("#{dir_path}/*").each do |file| | |
| # squeeze all whitespaces into single whitespaces | |
| new_file_name = file.squeeze(' ') | |
| base_name = File.basename(new_file_name) | |
| if base_name.include?('Xamarin.Android Tutorial - ') |
| import React from "react"; | |
| import { render } from "react-dom"; | |
| const ParentComponent = React.createClass({ | |
| getDefaultProps: function() { | |
| console.log("ParentComponent - getDefaultProps"); | |
| }, | |
| getInitialState: function() { | |
| console.log("ParentComponent - getInitialState"); | |
| return { text: "" }; |
cd ~
git clone [email protected]:[username]/dotfiles.git