Created
September 12, 2015 17:20
-
-
Save mtth/0bfd8e6548682699a41a to your computer and use it in GitHub Desktop.
Quine Python to JavaScript to Python
This file contains 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
s = "s = %j; t = %j; print t % (t, s)"; t = "var util = require('util'); var s = %r; var t = %r; console.log(util.format(t, t, s));"; print t % (t, s) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To check:
$ diff js.py <(node <(python js.py))
Inspired by https://github.com/mame/quine-relay.