Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@xem
Created November 19, 2016 12:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xem/019b50652d10b76cfddc6cb4d5c75d47 to your computer and use it in GitHub Desktop.
Save xem/019b50652d10b76cfddc6cb4d5c75d47 to your computer and use it in GitHub Desktop.
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
Copy link
Author

xem 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