Skip to content

Instantly share code, notes, and snippets.

View jamesoates88's full-sized avatar

James jamesoates88

  • London, England
View GitHub Profile
@jamesoates88
jamesoates88 / Angular.md
Last active March 8, 2017 22:58
How to setup an Angular 2 project on Cloud9

Angular Setup on Cloud9

Take the following steps to setup a new Angular project on Cloud9

Update Node to LTS (6.10.0)

nvm use 6.10.0
nvm alias default v6.10.0
@jamesoates88
jamesoates88 / functions.php
Last active December 19, 2015 15:19
Get google map directions via PHP using cURL
function super_json_decode($json, &$value, $assoc = false, $depth = 512, $options = 0) {
$pValue = false;
$result = json_decode($json, $assoc, $depth);
if(json_last_error() == JSON_ERROR_NONE) {
$pValue = $result;
return true;
}
return false;
}