Skip to content

Instantly share code, notes, and snippets.

@knarf-se
knarf-se / .tilemill.log
Created August 24, 2012 10:46
Tilemill fails to start
path.existsSync is now called `fs.existsSync`.
module.js:485
process.dlopen(filename, module.exports);
^
Error: libmapnik.so.2.1: cannot open shared object file: No such file or directory
at Object.Module._extensions..node (module.js:485:11)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
@knarf-se
knarf-se / counter.msc
Created October 29, 2011 13:51
e-valsystem
msc {
arcgradient = 7;
v [label="Valmyndigheten"], r [label="Rostraknare"];
--- [label="En rostraknare ansluter sin dator till systemet"];
v<=r [label="Logga in med e-Leg."];
v>>r [label="Unik nyckel"];
v<-r [label="Publik nyckel"];
v->r [label="Flera Unika e-valsedlar"];
@knarf-se
knarf-se / semicolons-matter.js
Created June 17, 2011 15:16 — forked from jbgo/semicolons-matter.md
When using semicolons in JavaScript matters
// This fails in firefox, chrome, and maybe others.
// Add a semicolon after foo() and to eliminate the error.
function foo() { /* code goes here */ }
foo() // no semi-colon here
(function() { /* anonymouse function */ })() // bork!
//You can also write the closure like this instead of putting a semicolon after foo:
//!function() { /* anonymouse function */ }() // bork!