##Create a new repository on the command line
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin git@github.com:alexpchin/.git
| # If you come from bash you might have to change your $PATH. | |
| # export PATH=$HOME/bin:/usr/local/bin:$PATH | |
| # Path to your oh-my-zsh installation. | |
| export ZSH="/Users/mac/.oh-my-zsh" | |
| # Set name of the theme to load --- if set to "random", it will | |
| # load a random theme each time oh-my-zsh is loaded, in which case, | |
| # to know which specific one was loaded, run: echo $RANDOM_THEME | |
| # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes |
| <?php // /app/Http/Middleware/Cors.php | |
| namespace App\Http\Middleware; | |
| use Closure; | |
| class Cors { | |
| public function handle($request, Closure $next) | |
| { | |
| return $next($request) |
##Create a new repository on the command line
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin git@github.com:alexpchin/.git
| server { | |
| listen 80; | |
| server_name .example.co.uk.dev; | |
| access_log /usr/local/var/log/nginx/example.co.uk-access.log; | |
| error_log /usr/local/var/log/nginx/example.co.uk-error.log error; | |
| root /var/www/example.co.uk/public; | |
| index index.php index.html; |
| 'use strict'; | |
| /* | |
| # Javascript Prototyping Best Practices | |
| * To create a class, create a constructor function with a `Name` and assign | |
| it to a variable of the same `Name`. | |
| * In this constructor only define properties using `this.prop` notation |