Skip to content

Instantly share code, notes, and snippets.

/* jshint undef: true, unused: true */
/* global module */
module.exports = function(grunt) {
require('time-grunt')(grunt);
grunt.initConfig({ // task definitions below
// Compile LESS to css.
less: {
@zamber
zamber / preview-shot.js
Last active August 29, 2015 13:58
DalekJS + Anvil -> screenshots for a dir full of .html files
/*
Iterate over the static frontend and make screenshots.
Point Anvil to the prod build dir where index.html is.
*/
// Get IP for ievms + anvil
// https://stackoverflow.com/questions/3653065/get-local-ip-address-in-node-js
var os = require('os');
var ip;
var ifaces = os.networkInterfaces();
@zamber
zamber / multipass-processing-example.xml
Last active December 17, 2015 03:59
An example of Xalan XSLT 1.0 multi-pass processing of nodes with some nice sorting options (show empty nodes last, case insensitive sort). Load it up in your favorite editor (Intellij IDEA in my case) and play with it :D.
<bookstore>
<book>
<title lang="en">everyday Italian</title>
<author>Giada De Laurentiis</author>
<year>2005</year>
<price/>
</book>
<book>