Skip to content

Instantly share code, notes, and snippets.

View espadrine's full-sized avatar

Thaddée Tyl espadrine

View GitHub Profile
[![stability 0 - deprecated](http://b.adge.me/:stability-0_--_deprecated-red.svg)
](http://nodejs.org/api/documentation.html#documentation_stability_index)

stability 0 - deprecated

@espadrine
espadrine / color-cheat-golf.js
Last active January 3, 2016 19:29 — forked from jankeromnes/color-cheat-golf.js
Cheat on <http://www.colormunki.com/game/huetest_kiosk>. How to get the best score, how to get the worst score.
for(i=0;++i<5;)for(j=2;++j<22;)eval('a=patch_'+i+'_'+j).parentNode.appendChild(a)
@espadrine
espadrine / color-cheat-golf.js
Last active January 3, 2016 19:09 — forked from jankeromnes/color-cheat-golf.js
Cheat on <http://www.colormunki.com/game/huetest_kiosk>. How to get the best score, how to get the worst score.
for(j=8;j++<88;)eval('a=patch_'+(j%4+1)+'_'+(j>>2)).parentNode.appendChild(a)
for(i=1;i<5;i++)for(j=2;j<22;)eval('a=patch_'+i+'_'+j++).parentNode.appendChild(a)
@espadrine
espadrine / objectunion.js
Created February 2, 2013 23:54 — forked from puffnfresh/objectunion.js
Cannot resist. Must add memoization.
// Boilerplate
function objectUnion(definer) {
var defined = 0, length = 0, isDefined = false, definitions, key;
definitions = definer(function() {
var names = arguments, fold;
if(isDefined) {
throw new TypeError('This objectUnion has already been defined');
}
function wrapped(args) {
@espadrine
espadrine / data-markdown.user.js
Created November 9, 2011 06:40 — forked from passcod/data-markdown.user.js
*[data-markdown] - use markdown, sometimes, in your HTML
// ==UserScript==
// @name *[data-markdown]
// @version 2.0
// @description Use Markdown, sometimes, in your HTML.
// @author Paul Irish <http://paulirish.com/> and others
// @include *
// ==/UserScript==
// Contribs:
// Thaddee Tyl <http://espadrine.github.com/>
@espadrine
espadrine / data-markdown.user.js
Created November 8, 2011 21:18 — forked from paulirish/data-markdown.user.js
*[data-markdown] - use markdown, sometimes, in your HTML
// ==UserScript==
// @name Use Markdown, sometimes, in your HTML.
// @author Paul Irish <http://paulirish.com/>, bits by Thaddee Tyl <http://espadrine.github.com/>
// @link http://git.io/data-markdown
// @include *
// ==/UserScript==
// If you're not using this as a userscript just delete from this line up. It's cool, homey.