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
@color-base: #2d5e8b; | |
.class1 { | |
background-color: @color-base; | |
} | |
.class2 { | |
background-color: #fff; | |
color: @color-base; | |
} | |
.class3 { |
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
.class1 { | |
background-color: #2d5e8b; | |
} | |
.class2 { | |
background-color: #fff; | |
color: #2d5e8b; | |
} | |
.class3 { | |
border: 1px solid #2d5e8b; | |
} |
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 less = require('gulp-less'); | |
gulp.task('less', function() { | |
return gulp.src('css/app.less') | |
.pipe(less()) | |
.pipe(gulp.dest('dist')); | |
}); | |
gulp.task('watch', ['less'], function() { |
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 less = require('gulp-less'); | |
var concat = require('gulp-concat'); | |
gulp.task('less', function() { | |
return gulp.src('css/app.less') | |
.pipe(less()) | |
.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
var gulp = require('gulp'); | |
var uglify = require('gulp-uglify'); | |
var concat = require('gulp-concat'); | |
var ngmin = require('gulp-ngmin'); | |
gulp.task('scripts', function() { | |
return gulp.src(['src/**/module.js', 'src/**/*.js']) | |
.pipe(concat('app.js')) | |
.pipe(ngmin()) | |
.pipe(uglify()) |
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 less = require('gulp-less'); | |
var concat = require('gulp-concat'); | |
var uglify = require('gulp-uglify'); | |
gulp.task('less', function() { | |
return gulp.src('css/app.less') | |
.pipe(less({compress: true})) | |
.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
{ | |
"app.css": "app-1c1d3237.css", | |
"app.js": "app-26ad0c3f.js" | |
} |
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 rev = require('gulp-rev'); | |
gulp.task('rev', ['less', 'scripts'], function() { | |
return gulp.src(['dist/**/*.css', 'dist/**/*.js']) | |
.pipe(rev()) | |
.pipe(gulp.dest('dist')) | |
.pipe(rev.manifest()) | |
.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
puts('Welcome to hungryapp!') | |
print('Would you like an appetizer? ') | |
response = gets().chomp.downcase | |
while response == 'yes' || response == 'y' | |
puts('These are the appetizer choices, enter the number of the appetizer you want:') | |
appetizers = ['none', 'nachos', 'mozzerlla sticks', 'chips and salsa'] |
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 express = require('express'); | |
var app = express(); | |
var PORT = 3000; | |
app.use(function(req, res, next) { | |
console.log('pid:', process.pid, 'received', req.path); | |
next(); | |
}); |