This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var gulp = require('gulp'); | |
var gUtil = require('./../gulp.utils.js')(); | |
gulp.task('codeReview', function() { | |
gUtil.log('Analyzing source .JS files with JSCS & JSHint'); | |
return gulp | |
.src(gUtil.configs.serverJS) | |
.pipe(gUtil.GP.if(gUtil.args.verbose, gUtil.GP.print())) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nock("http://www.google.com") | |
.filteringPath(function(path){ | |
return '/'; | |
}) | |
.get("/") | |
.reply(200, "this should work?"); | |
request("http://www.google.com?value=bob", function(err, res, body) { | |
return console.log(body); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#https://help.ubuntu.com/community/AptGet/Howto |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#http://nginx.org/en/docs/beginners_guide.html | |
#Once nginx is started, it can be controlled by invoking the executable with the -s parameter. | |
nginx -s quit #graceful shutdown | |
nginx -s stop #fast shutdown | |
nginx -s reload #reloading the configuration file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew --version | |
brew list | |
brew update | |
brew upgrade -all | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git -v | |
node -v | |
bower -v | |
npm -v | |
ionic -v | |
cordova -v | |
nvm -v | |
mongo --version | |
#Global as of 04/May/2015 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#install | |
sudo npm install -g gulp | |
npm install gulp --save-dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$http.get(baseApiUrl + partialUrl, { | |
params: parms; | |
}) | |
.success(function (result, status, headers, httpconfig) {}) | |
.error(function (result, status, headers, httpconfig) {}); | |
//Function | |
function makeGetCall(url, parms) { | |
var deferred = $q.defer(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
'use strict'; | |
angular.module('PBDesk.Exception', ['PBDesk.Logger']) | |
.factory('exception', exception) | |
.provider('ExceptionHandler', ExceptionHandlerProvider) | |
.config(config); | |
exception.$inject = ['Logger']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
'use strict'; | |
angular | |
.module('PBDesk.Logger') | |
.controller('LoggerTestController', LoggerTestController); | |
LoggerTestController.$inject = ['$scope', 'Logger']; | |
function LoggerTestController($scope, Logger) { |