This file contains 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
#!/bin/bash -e | |
SERVICE=node_server | |
INIT_LOCATION=/etc/init.d/${SERVICE} | |
npm install -g forever | |
mkdir /var/run/forever | |
touch $INIT_LOCATION |
This file contains 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
#!/bin/bash -e | |
cd /var/apps | |
GIT=`which git` | |
REPO=$1 | |
echo repo: $REPO | |
## Get the hash othe origin/master |
This file contains 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
compass: { | |
options: { | |
importPath: '<%= yeoman.app %>/bower_components', | |
} | |
}, | |
copy { | |
dist: { | |
files: [{ | |
src: [ |
This file contains 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
var analytics = angular.module('analytics', ['ng']); | |
analytics.service('analytics', ['$rootScope', '$window', '$location', function ($rootScope, $window) { | |
$rootScope.$on('$viewContentLoaded', function () { | |
//$window.ga.push(['_trackPageView', $location.path()]); | |
$window.ga('send', 'pageview'); | |
}); | |
}]); |
This file contains 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
# Log each type to a different file | |
# - Add to your .htaccess file | |
# - Remember to remove from production servers when done as it can be verbose. | |
ErrorLog /path/to/apache/writable/dir/of/logs/error.log | |
Loglevel debug | |
CustomLog /path/to/apache/writable/dir/of/logs/access.log combined | |
<IfModule mod_rewrite.c> |
This file contains 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
var MyClass = function () {}; | |
MyClass.prototype.one = function () { | |
console.log(1); | |
return this; | |
} | |
MyClass.prototype.two = function () { | |
console.log(2); | |
return this; | |
} |