Last active
August 21, 2019 10:30
-
-
Save SaphireLattice/d2605572916e910408a9eff74e9d62f7 to your computer and use it in GitHub Desktop.
Quine builder
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
const printOutput = true; | |
// 0123456789AB C D | |
console.log((()=>"console.log("+(alph="(),$=>[|]+-0\\\"",src=` | |
( | |
(index,temp,names,alphabet,source) => | |
names | |
[names[++index]] | |
[names[++index]] | |
(source, | |
(char) => | |
alphabet[names[++index]+char-names[index--]] || | |
names[names[++index]+char-names[index++]-names[index--]-names[index--]+temp++] || | |
source | |
)[names[index+++index]]("") | |
)`.replace(/( |\n)/g,"").replace(/index/g,"$").replace(/names/g,"$$0").replace(/alphabet/g,"$$$$").replace(/source/g,"$$$$0").replace(/char/g,"$$$$$$").replace(/temp/g,"$$0$$")) + | |
`(0,0,["${printOutput?"console.log":""}(","map","call","0x0","15","join"],"${alph.replace(/\\/,"\\\\\\")}","F${[].map.call(src,(char)=>alph.indexOf(char).toString(16).toUpperCase()).join("")}0B2B26DED2DED2DED2DED2DED2DED82D0123456789ABCCCDD2DED11"))`)()) | |
//E=^ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment