Skip to content

Instantly share code, notes, and snippets.

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 danielstocks/e049d35cf09f3f61b4cc85035a41ad48 to your computer and use it in GitHub Desktop.
Save danielstocks/e049d35cf09f3f61b4cc85035a41ad48 to your computer and use it in GitHub Desktop.
twaddle
// 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