Skip to content

Instantly share code, notes, and snippets.

@smrq
smrq / eater.js
Last active October 5, 2016 04:44 — forked from icemnki/eater.js
function(_, { t }) { // t:#s.name.loc
var
V = "red0orange0yellow0green0lime0blue0cyan0purple0open0unlock0release02030507011013017019023029031037041043047053059061067071073079083089097".split(0),
r = "!co|1!|2!|3!|21!|35!|40!|!d|digit|k c|r n|d c|nt |c002_complement|c003_triad_1|c003_triad_2|pr",
R = r.split("|"),
i = 0,
o = {},
T, k, v, m, n
for (;
m = (T = t.call(o)).match(r);