Skip to content

Instantly share code, notes, and snippets.

@xem xem/v1.html
Created Nov 19, 2016

Embed
What would you like to do?
1kb ES6 Quines Ideas
<pre id=p><script id="s" style="display:block">setInterval(z=`
/* =<,m#F^ A W###q. */ ;
/* #K q##H######Am */ ;
/* dP cpq#q##########b, */ ;
/* p##@###YG=[#######y */ ;
/* d#qg '*PWo##q#######D */ ;
/* aem1k.com Q###KWR#### W[ */ ;
/* .Q#########Md#.###OP A@ , */ ;
/* , (W#####Xx######.P^ T % */ ;
/* #y '^TqW####P###BP */ ;
/* b. OQ####x#K */ ;
/* l 'X#####D , */ ;
/* G####B" # */ ;
/* VQBP' */ ;
/* TP */ ;
`,9);s.innerHTML="<pre id=p>"+p.innerHTML</script>
<pre id="p"><script id="s" style="display:block">setInterval(z
=` /* =<,m#F^ A W###q. */ ;
/* #K q##H######Am */ ;
/* dP cpq#q##########b, */ ;
/* p##@###YG=[#######y */ ;
/* d#qg '*PWo##q#######D */ ;
/* aem1k.com Q###KWR#### W[ */ ;
/* .Q#########Md#.###OP A@ , */ ;
/* , (W#####Xx######.P^ T % */ ;
/* #y '^TqW####P###BP */ ;
/* b. OQ####x#K */ ;
/* l 'X#####D , */ ;
/* G####B" # */ ;
/* VQBP' */ ;
/* TP */ ;
`,9);s.innerHTML=p.outerHTML</script></pre>
<pre id="p"><svg id="s" onload="setInterval(z=` ;
/* =<,m#F^ A W###q. */ ;
/* #K q##H######Am */ ;
/* dP cpq#q##########b, */ ;
/* p##@###YG=[#######y */ ;
/* d#qg '*PWo##q#######D */ ;
/* aem1k.com Q###KWR#### W[ */ ;
/* .Q#########Md#.###OP A@ , */ ;
/* , (W#####Xx######.P^ T % */ ;
/* #y '^TqW####P###BP */ ;
/* b. OQ####x#K */ ;
/* l 'X#####D , */ ;
/* G####B' # */ ;
/* VQBP' */ ;
/* TP */ `,9)
;p.innerHTML=p.outerHTML.replace(/</g,'\x26lt;')"></svg></pre>
@xem

This comment has been minimized.

Copy link
Owner Author

commented Nov 19, 2016

inspired by @aemkei's world1k. No code is executed inside the interval yet. ES6 template literals can be multiline, so no need to use "". The ";" are just here to show the end of each line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.