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
| // Load plugins | |
| var gulp = require('gulp'), | |
| plugins = require('gulp-load-plugins')({ camelize: true }), | |
| lr = require('tiny-lr'), | |
| server = lr(); | |
| // Styles | |
| gulp.task('styles', function() { | |
| return gulp.src('assets/styles/source/*.scss') | |
| .pipe(plugins.rubySass({ style: 'expanded', compass: true })) |
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
| <section id="archive"> | |
| <h3>This year's posts</h3> | |
| {%for post in site.posts %} | |
| {% unless post.next %} | |
| <ul class="this"> | |
| {% else %} | |
| {% capture year %}{{ post.date | date: '%Y' }}{% endcapture %} | |
| {% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %} | |
| {% if year != nyear %} | |
| </ul> |
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
| // _decimal.scss | MIT License | gist.github.com/terkel/4373420 | |
| // Round a number to specified digits. | |
| // | |
| // @param {Number} $number A number to round | |
| // @param {Number} [$digits:0] Digits to output | |
| // @param {String} [$mode:round] (round|ceil|floor) How to round a number | |
| // @return {Number} A rounded number | |
| // @example | |
| // decimal-round(0.333) => 0 |
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
| <div class="the-return"> | |
| [HTML is replaced when successful.] | |
| </div> |
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
| var sys = require("sys"), | |
| fs = require("fs"); | |
| function processImageDir(path, outFilename, cb) { | |
| fs.readdir(path, function(err, files) { | |
| var imgfiles = []; | |
| // Check for images and push on the array if it's a match. | |
| files.forEach(function(name) { |
NewerOlder