cp /etc/vim/vimrc ~/.vimrc
Custom recipe to get OS X 10.11 El Capitan running from scratch with useful applications and Node.js Developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after fresh install.
| var express = require('express') | |
| var app = express() | |
| app.get('/api/feed', function(req, res) { | |
| res.json({name: 'feed', items: ['first', 'second']}) | |
| }) | |
| var server = app.listen(3000, function () { | |
| var host = server.address().address |
#Laravel 5 Simple ACL manager
Protect your routes with user roles. Simply add a 'role_id' to the User model, install the roles table and seed if you need some example roles to get going.
If the user has a 'Root' role, then they can perform any actions.
Simply copy the files across into the appropriate directories, and register the middleware in App\Http\Kernel.php
Follow the steps below to setup a local development environment:
Recommended to download latest XQuartz
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| Note for me to remember how to set Android Home on Mac | |
| Open Terminal and type in.. | |
| nano ~/.bash_profile | |
| Add the below paths | |
| The path should be where your android installation is located | |
| export ANDROID_HOME=/Users/username/Library/Android/sdk | |
| export export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools | |
| Save file and type in terminal... | |
| source ~/.bash_profile |
| export ANDROID_HOME=/Users/admin/Library/Android/sdk | |
| export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools | |
| tools:$ANDROID_HOME/tools:$PATH |
Install homebrew
Install java and maven