Skip to content

Instantly share code, notes, and snippets.

// Include gulp
var gulp = require('gulp');
// Include plugins
var less = require('gulp-less');
var please = require('gulp-pleeease');
var rename = require('gulp-rename');
var rev = require('gulp-rev-mtime');
// css Tasks
@mathbruyen
mathbruyen / gist:201b5c4973d2118296eb
Last active August 29, 2015 14:02
Reproducer for 3musket33rs/mathsync issue #15
//var Promise = require('es6-promise').Promise;
Promise.resolve({ foo: 'bar' }).then(function () {
return new Promise(function (resolve, reject) {
process.nextTick(resolve.bind(null, 'end'));
console.log('registered');
});
}).then(console.log.bind(console, 'done'));
setTimeout(console.log.bind(console, 'timeout'), 2000);
@mathbruyen
mathbruyen / Weirdness.tpl
Created January 10, 2014 10:28
Spinner not following parent section if not bound in the data model.
{Template {
$classpath : 'Weirdness'
}}
{macro main()}
${ this.data = {} }
{@aria:Button { label: "Dialog on", onclick: function() { $json.setValue(data, 'visible', true); } }/}
{@aria:Dialog {
title : 'Dialog',
contentMacro : 'dialog',
@mathbruyen
mathbruyen / crank.scad
Created May 5, 2013 08:25
Repairing window shade crank. STL file to be generated with OpenSCAD.
// Structure dimensions
height = 98;
radius = 6;
hole_radius = 5;
hole_width = 2;
hole_offset = 10;
// Choices
thickness = 2;
@mathbruyen
mathbruyen / websequencediagram.sh
Created January 31, 2012 22:11
Script for fetching sequence diagrams from www.websequencediagrams.com using cURL
#!/bin/sh
# Script for fetching sequence diagrams from www.websequencediagrams.com
# Arguments:
# - 1 (mandatory): text file to be used as input
# - 2 (optional): output file, defaults to input file + format
# Common
format=png
style=napkin
apiVersion=1