Created
May 7, 2016 17:54
-
-
Save danielstocks/e049d35cf09f3f61b4cc85035a41ad48 to your computer and use it in GitHub Desktop.
twaddle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Paste and run in console! | |
alert(["0707", 92042, 697, 2746, 8646, 1792, 1].reduce(function(a, b) { | |
return a + b.toString() | |
}, "48617").split("").map(function(s, i, list) { | |
var x; | |
if (i % 2) x = list[i + 1] + (list[i + 2] || ""); | |
if (i == 0) x = list[0] + list[1]; | |
return x; | |
}).filter(function(item) { | |
return typeof item === 'string'; | |
}).map(function(x) { | |
return String.fromCharCode(parseInt(x, 16)) | |
}).join("")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment