Skip to content

Instantly share code, notes, and snippets.

@justinbaker999
Last active February 17, 2019 15:12
Show Gist options
  • Save justinbaker999/64e8b73ae3053074d4690f899f8a6cf9 to your computer and use it in GitHub Desktop.
Save justinbaker999/64e8b73ae3053074d4690f899f8a6cf9 to your computer and use it in GitHub Desktop.
99 bottles of beer 😜
if(!global.atob) {global.atob = function (str) {return Buffer.from(str, 'base64').toString();}}
const e = (j,...b) => eval("("+atob(j) + ")(" + b+")")
const beer="KGIpID0+IHsKICBmb3IgKGxldCBpID0gYiA7IGkgPiAwIDsgaS0tKSB7CiAgICBsZXQgaiA9IGkgLSAxOwogICAgbGV0IGljYXNlID0gaSAhPSAxID8gImJvdHRsZXMiIDogImJvdHRsZSI7CiAgICBsZXQgamNhc2UgPSBqICE9IDEgPyAiYm90dGxlcyIgOiAiYm90dGxlIjsKICAgIGNvbnNvbGUubG9nKGkgKyAiICIgKyBpY2FzZSArICIgb2YgYmVlciBvbiB0aGUgd2FsbCwiKTsKICAgIGNvbnNvbGUubG9nKGkgKyAiICIgKyBpY2FzZSArICIgb2YgYmVlciwiKTsKICAgIGNvbnNvbGUubG9nKCJUYWtlIDEgZG93biwgcGFzcyBpdCBhcm91bmQsIik7CiAgICBjb25zb2xlLmxvZyhqICE9IDAgPyBqICsgIiAiICsgamNhc2UgKyAiIG9mIGJlZXIgb24gdGhlIHdhbGwuIiA6ICJObyBtb3JlIGJvdHRsZXMgb2YgYmVlciBvbiB0aGUgd2FsbCIpCiAgICBjb25zb2xlLmxvZygpCiAgfQp9";
e(beer, 99);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment