Skip to content

Instantly share code, notes, and snippets.

View aemkei's full-sized avatar

Martin Kleppe aemkei

View GitHub Profile
@aemkei
aemkei / README.md
Last active January 3, 2016 14:49 — forked from mbostock/.block
@aemkei
aemkei / dabblet.css
Created April 5, 2013 09:27
Untitled
div {
width: 42px;
height: 40px;
-webkit-mask-image: url(http://upload.wikimedia.org/wikipedia/commons/thumb/b/b9/NCAAFootball_transparent.png/42px-NCAAFootball_transparent.png);
background: purple;
}
@aemkei
aemkei / berlinjs.md
Last active December 15, 2015 06:19
Links from my presentation at Berlin.js
@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 / 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 / puppeteer.md
Created August 1, 2012 14:01
Web Puppeteer Docs

Quick reference for Google's Web Puppeteer:

Members

attribute

Returns true iff the element is present and has the given attribute key/value pair. Since the name of the attribute specifying the element's class is either called 'class' or 'className', depending on the browser, use clazz() instead of this function for testing the value of the class with cross-browser compatibility.

blur

Returns true if the element is shown, and if it is, blurs it.

@aemkei
aemkei / index.js
Created July 16, 2012 13:16
Obfuscate JS
http://www.jsfuck.com/
// RUN THIS IN JAVASCRIPT
([]+{}+[])[!!{}+![]]+([]+
{}+[])[!!{}+!![]]+(!{}+[]
)[!{}+![]]+([][{}]+[])[!{
}+![]]+(!{}+[])[![]+!!{}+
!!{}+!![]]+({}+{})[(!!{}+
@aemkei
aemkei / README.md
Created March 6, 2012 21:44
Fuse - JS1K
  ____ __ __ ____ ____
/  __|  |  | ___/ ___| 
|  __|  |  |__  | __) 
|_|  `_____|____/____/  JS1K

FUSE

Spread the love by absorbing all the positive energy around you.

In this simple game you control an energy ball through seven levels of love.

@aemkei
aemkei / LICENSE.txt
Last active April 12, 2024 21:27 — forked from 140bytes/LICENSE.txt
Binary Tetris - 140byt.es
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
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
@aemkei
aemkei / LICENSE.txt
Created November 13, 2011 21:06 — forked from 140bytes/LICENSE.txt
Rubik's Pocket Cube Solver - 140byt.es
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
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