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
app.config(function($interpolateProvider){ | |
$interpolateProvider.startSymbol('{(').endSymbol(')}'); | |
}) |
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
<input type="radio" | |
name="service_required" | |
ng-click="nextStepWithDelay()" | |
ng-model="data.service_required" | |
value="Repair Windows" | |
ng-required="!service_required"> Repair Windows |
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
# Sets the default security model of the Apache2 HTTPD server. It does | |
# not allow access to the root filesystem outside of /usr/share and /var/www. | |
# The former is used by web applications packaged in Debian, | |
# the latter may be used for local directories served by the web server. If | |
# your system is serving content from a sub-directory in /srv you must allow | |
# access here, or in any related virtual host. | |
<Directory /> | |
Options FollowSymLinks | |
AllowOverride None | |
Require all denied |
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
// HTML | |
<input type="checkbox" | |
name="windowStyle[]" | |
ng-model="data.windowStyle.singleHung" | |
ng-true-value="'Single Hung'" | |
ng-required="!someSelected(data.windowStyle)"> | |
// JS | |
$scope.someSelected = function (object) { | |
return Object.keys(object).some(function (key) { |
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
Define SITE sitename.com | |
Define NAME sitename | |
<VirtualHost *:80> | |
ServerName ${SITE} | |
ServerAlias www.${SITE} | |
ServerAdmin webmaster@localhost | |
DocumentRoot /home/deploy/sites/${NAME}/web | |
ErrorLog ${APACHE_LOG_DIR}/${SITE}.error.log |
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
// NOTE: Use sudo for MAC | |
// Install module locally | |
npm install package-name | |
// Inastall module globally | |
npm install -g package-name | |
// Add module to dependencies in package.json | |
npm install --save package-name |
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 gulp = require('gulp'); | |
var uglify = require('gulp-uglify'); | |
var rename = require("gulp-rename"); | |
var uglifycss = require('gulp-uglifycss'); | |
var sass = require('gulp-sass'); | |
gulp.task('default', function (){ | |
gulp.watch('js/*.js', ['compressjs']); | |
gulp.watch('css/*.css', ['compresscss']); |
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 gulp = require('gulp'); | |
var uglify = require('gulp-uglify'); | |
var rename = require("gulp-rename"); | |
gulp.task('compressjs', function () { | |
gulp.src('js/*.js') | |
.pipe(uglify()) | |
.pipe(rename({ suffix: '.min' })) | |
.pipe(gulp.dest('dist')) | |
}) |
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
$("div").click(function() { | |
var bg = $(this).css('background-image'); | |
bg = bg.replace('url(','').replace(')','').replace(/\"/gi, ""); | |
alert(bg); | |
}); |