Skip to content

Instantly share code, notes, and snippets.

@JustinSDK
Last active September 21, 2020 01:41
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 JustinSDK/5361802 to your computer and use it in GitHub Desktop.
Save JustinSDK/5361802 to your computer and use it in GitHub Desktop.
The Ruby example of "AlgorithmGossip: Quine"
s="print('quine')";v="s=v=l=p=";l='";\'\\';p="print(v[0,2]+l[0]+s+l[0,2]+v[2,2]+l[0]+v+l[0]+l[1]+v[4,2]+l[2]+l[0,2]+l[3]+l[2]+l[3]+l[3]+l[2]+l[1]+v[6,2]+l[0]+p+l[0]+l[1]+p)";print(v[0,2]+l[0]+s+l[0,2]+v[2,2]+l[0]+v+l[0]+l[1]+v[4,2]+l[2]+l[0,2]+l[3]+l[2]+l[3]+l[3]+l[2]+l[1]+v[6,2]+l[0]+p+l[0]+l[1]+p)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment