Skip to content

Instantly share code, notes, and snippets.

@Twisol
Forked from icemnki/eater.js
Created October 3, 2016 09:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Twisol/b3dc9251846f0c682b82d44f9defcc59 to your computer and use it in GitHub Desktop.
Save Twisol/b3dc9251846f0c682b82d44f9defcc59 to your computer and use it in GitHub Desktop.
function ( a , { t } )
{// t:#s.name.loc
var c = { } , p , v , r , x , s , i = 0 ,
P = "red0purple0blue0cyan0green0lime0yellow0orange020305070110130170190230290310370410430470530590610670710730790830890970unlock0open0release" . split ( 0 ) ,
z = "21!|35!|40!|1!|2!|3!|or n|d c| com|k c|color_digit|c002_complement|c003_triad_1|c003_triad_2|!d|t d|pr",
Z = z . split ( '|' )
for ( ; v = ( r = t . call ( c ) ) . match ( z ) ; c [ p ] = x , i ++ )
s = Z . indexOf ( v = v [ 0 ] ) ,
s > 15 ? c . ez_prime = + P [ i % 25 + 8 ] :
s > 13 ? c . digit = i % 10 :
s > 10 ? p = v :
s > 9 ? c [ v ] = i % 10 :
x = s > 8 ? P [ i % 3 + 33 ] :
s > 5 ? P [ i % 8 ] :
p = s > 2 ? "c00" + v [ 0 ] :
"EZ_" + v [ 0 ] + v [ 1 ]
return r
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment