Skip to content

Instantly share code, notes, and snippets.

@marcin-chwedczuk
Created March 2, 2015 17:37
Show Gist options
  • Save marcin-chwedczuk/0586e8c946ae0ec5e185 to your computer and use it in GitHub Desktop.
Save marcin-chwedczuk/0586e8c946ae0ec5e185 to your computer and use it in GitHub Desktop.
javascript ugly quine
var s="var s=\x22%\x22; console.log(s.replace(\x22%\x22,s.replace(new RegExp(String.fromCharCode(34),\x22g\x22),String.fromCharCode(92)+\x22x22\x22)))"; console.log(s.replace("%",s.replace(new RegExp(String.fromCharCode(34),"g"),String.fromCharCode(92)+"x22")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment