Skip to content

Instantly share code, notes, and snippets.

View aemkei's full-sized avatar

Martin Kleppe aemkei

View GitHub Profile
@aemkei
aemkei / SandBox.js
Created October 7, 2012 10:53 — forked from line-o/SandBox.js
Is it possible to sandbox JS code
function sandbox(script, context){
context.window = {};
for (var key in context){
context.window[key] = context[key];
}
context.global = context.window;
eval("with (context){~function(){'use strict';" + script + "}()}");
}
@aemkei
aemkei / dabblet.css
Last active December 12, 2015 04:28 — forked from anonymous/dabblet.css
Untitled
div {
width: 100px;
height: 100px;
background: url(http://upload.wikimedia.org/wikipedia/commons/thumb/b/b9/NCAAFootball_transparent.png/42px-NCAAFootball_transparent.png) no-repeat;
-webkit-filter:
invert()
contrast(0%)
sepia()
saturate(8000%)
hue-rotate(0deg)
@aemkei
aemkei / README.md
Last active January 3, 2016 14:49 — forked from mbostock/.block
@aemkei
aemkei / LICENSE.txt
Last active August 29, 2015 14:23 — forked from maettig/LICENSE.txt
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Thiemo Mättig <http://maettig.com/>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE