Skip to content

Instantly share code, notes, and snippets.

@brianfryer
Created July 12, 2013 21:12
Show Gist options
  • Save brianfryer/5987888 to your computer and use it in GitHub Desktop.
Save brianfryer/5987888 to your computer and use it in GitHub Desktop.
cornsole.log()
var cornsole = {
log: function(txt) {
var cornhole = atob('ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC4tLS0tLS0tLS0tLS0tLg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLyAgICAgICAgICAgICAgIFwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLyAuLS0tLS0uICAgICAgICAgXA0KSSBhbSB0aGUgR3JlYXQgQ29ybmhvbGlvISEgICAgICAgICB8LyAtLWAtYC1cICAgICAgICAgXA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8ICAgICAgICAgXCAgICAgICAgfA0KSSBuZWVkIFRQIGZvciBteSBidW5naG9sZSEhICAgICAgICAgfCAgIF8tLSAgIFwgICAgICAgfA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3wgPS0uICAgICB8ICAgICAgfA0KQ29tZSBvdXQgd2l0aCB5b3VyIHBhbnRzIGRvd24hICAgICAgb3wvby8gICAgICB8ICAgICAgfA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLyAgfiAgICAgICB8ICAgICAgfA0KQVJFIFlPVSBUSFJFQVRFTklORyBNRT8/ICAgICAgICAgIChfX19fQCkgIF9fXyB8ICAgICAgfA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfPT09fn5+LmB8ICAgICAgfA0KT2guIGhlaC1oZWguICBTb3JyeSBhYm91dCB0aGF0LiAgIF9fX19fX18uLS1+ICB8ICAgICAgfA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcX19fX19fXyAgICB8ICAgICAgfA0KaGVoLWhlaC4gIFRoaXMgaXMgY29vbC4gIGhlaC1oZWggICAgICAgIHwgIFwgICB8ICAgICAgfA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcXy9fXy8gICAgICAgfA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLyAgICAgICAgICAgIF9fXA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLXwgTWV0YWxsaWNhfHwgfA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfHwgICAgICAgICAgfHwgfA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfHwgICAgICAgICAgfHwgfA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgL3wgICAgICAgICAgLyAv');
console.log(cornhole);
console.log(txt);
}
};
@brianfryer
Copy link
Author

For the non-initiated:

  1. Open up the web console in a modern web browser (e.g. Chrome: CMD+option+j; Firefox: CMD+option+k).
  2. Copy/past lines 1-7 into the web console.
  3. Type cornsole.log() in the web console and press ENTER
  4. PROFIT!!!

edit So I was getting some water in the break room at work when a fellow dev walked in and said, "Man, it's been one of those days. I was debugging something and typed in cornsole instead of console." I totally LOL'd and thought to myself, "This has to be made into a thing."

Thus, cornsole.log() was born.

edit 2 Credit for the "surprise" goes to Mike Gadda [email protected]

@Xeldar
Copy link

Xeldar commented Jul 12, 2013

Nice :D

@ranveer5289
Copy link

Cool....!!!

@DKunin
Copy link

DKunin commented Jul 15, 2013

Heh-heh)))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment