Skip to content

Instantly share code, notes, and snippets.

Martin Kleppe aemkei

Block or report user

Report or block aemkei

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View README.md
View dabblet.css
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 Dec 15, 2015
Links from my presentation at Berlin.js
View berlinjs.md
@aemkei
aemkei / dabblet.css
Last active Dec 12, 2015 — forked from anonymous/dabblet.css
Untitled
View dabblet.css
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 Oct 7, 2012 — forked from line-o/SandBox.js
Is it possible to sandbox JS code
View SandBox.js
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 Aug 1, 2012
Web Puppeteer Docs
View puppeteer.md

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 Jul 16, 2012
Obfuscate JS
View index.js
http://www.jsfuck.com/
// RUN THIS IN JAVASCRIPT
([]+{}+[])[!!{}+![]]+([]+
{}+[])[!!{}+!![]]+(!{}+[]
)[!{}+![]]+([][{}]+[])[!{
}+![]]+(!{}+[])[![]+!!{}+
!!{}+!![]]+({}+{})[(!!{}+
View README.md
  ____ __ __ ____ ____
/  __|  |  | ___/ ___| 
|  __|  |  |__  | __) 
|_|  `_____|____/____/  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 Dec 10, 2019 — forked from 140bytes/LICENSE.txt
Binary Tetris - 140byt.es
View LICENSE.txt
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 Nov 13, 2011 — forked from 140bytes/LICENSE.txt
Rubik's Pocket Cube Solver - 140byt.es
View LICENSE.txt
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
You can’t perform that action at this time.