Skip to content

Instantly share code, notes, and snippets.


Petulant Slacker LuiSlacker

View GitHub Profile
yonester / example.js
Last active Nov 4, 2016
Can we interpolate "transform" in jsdom?
View example.js
var jsdom = require('jsdom'),
d3 = require('d3');
var document = jsdom.jsdom();
var rect ='svg').append('rect');
// This works...
.attr('width', 0)
justmoon / custom-error.js
Last active Feb 6, 2021 — forked from subfuzion/
Creating custom Error classes in Node.js
View custom-error.js
'use strict';
module.exports = function CustomError(message, extra) {
Error.captureStackTrace(this, this.constructor); =;
this.message = message;
this.extra = extra;
require('util').inherits(module.exports, Error);
staltz /
Last active May 16, 2021
The introduction to Reactive Programming you've been missing