Latest updated version:
<script>
ga=function(){ga.q.push(arguments)};ga.q=[];ga.l=+new Date;
ga('create','UA-XXXX-Y','auto');ga('send','pageview')
</script>
<script src="https://www.google-analytics.com/analytics.js" async defer></script>
| # Load dependencies. | |
| pmodload 'helper' | |
| CURRENT_BG='NONE' | |
| SEGMENT_SEPARATOR='⮀' | |
| # Begin a segment | |
| # Takes two arguments, background and foreground. Both can be omitted, | |
| # rendering default background/foreground. |
| /* | |
| * This decorates Handlebars.js with the ability to load | |
| * templates from an external source, with light caching. | |
| * | |
| * To render a template, pass a closure that will receive the | |
| * template as a function parameter, eg, | |
| * T.render('templateName', function(t) { | |
| * $('#somediv').html( t() ); | |
| * }); | |
| * Source: https://github.com/wycats/handlebars.js/issues/82 |
| /** | |
| * BrowserSync config: serve static assets, and proxy the HTML | |
| * | |
| * Let's say we have the codebase for the front-end of a website, | |
| * and we want to develop CSS/JS or debug against the HTML of | |
| * a remote development, staging or production server. | |
| * | |
| * Using BrowserSync (2.4 needed), we want to serve to our browser(s): | |
| * - the distant HTML pages and content images from the server | |
| * - local static assets (including or changes) |
| <header class="header" role="banner"> | |
| <div class="header-wrapper"> | |
| <h1 class="brand">One|North</h1> | |
| </div> | |
| </header> | |
| <div class="container"> | |
| <input class="nav-toggle" type="checkbox" id="thebox" /> | |
| <label class="nav-toggle__label" for="thebox">click to change state</label> | |
| <div class="dashboard is-shifted"> |
| <header class="header" role="banner"> | |
| <div class="header-wrapper"> | |
| <h1 class="brand">One|North</h1> | |
| </div> | |
| </header> | |
| <div class="container"> | |
| <div class="dashboard is-shifted"> | |
| // ---- | |
| // Sass (v3.3.14) | |
| // Compass (v1.0.1) | |
| // ---- | |
| // Modified version of Harry Roberts' width mixin. | |
| // https://github.com/csswizardry/discovr/blob/master/css/_trumps.widths.scss | |
| // A mixin to spit out our width classes. Pass in the total number of columns | |
| // we want to have, and an optional suffix for responsive widths. The widths are |
Latest updated version:
<script>
ga=function(){ga.q.push(arguments)};ga.q=[];ga.l=+new Date;
ga('create','UA-XXXX-Y','auto');ga('send','pageview')
</script>
<script src="https://www.google-analytics.com/analytics.js" async defer></script>
I'm in a hospital in Spain and my MacBook was stolen.
Now I bought a new one and need to configure it. I have an external hard drive that backup everything using Time Machine, but I don't want all the crap I had in the old one.
| var combine = require('stream-combiner'); | |
| function lazypipe() { | |
| var createPipeline = function(tasks) { | |
| var build = function() { | |
| return combine.apply(null, tasks.map(function(t) { | |
| return t.task.apply(null, t.args); | |
| })); | |
| }; | |
| build.pipe = function(task) { |
| //<editor-fold desc="Node Requires, gulp, etc"> | |
| var gulp = require('gulp'), | |
| autoprefixer = require('gulp-autoprefixer'), | |
| clean = require('gulp-clean'), | |
| concat = require('gulp-concat'), | |
| csso = require('gulp-csso'), | |
| debug = require('gulp-debug'), | |
| footer = require('gulp-footer'), | |
| gutil = require('gulp-util'), | |
| gzip = require('gulp-gzip'), |