Skip to content

Instantly share code, notes, and snippets.

@capttwinky
Created June 4, 2014 05:10
Show Gist options
  • Save capttwinky/05735bb22e15dcd55c58 to your computer and use it in GitHub Desktop.
Save capttwinky/05735bb22e15dcd55c58 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import qrcode
with open(__file__) as ofile:
mcnts = ofile.read()[:-1]
qrcode.make(mcnts).save('quine_qr.png')
print(mcnts)
@capttwinky
Copy link
Author

$ chmod +x qnr.py
$ ./qnr.py > qnr2.py
$ diff qnr.py qnr2.py
$ zbarimg --raw quine_qr.png>qnr3.py
scanned 1 barcode symbols from 1 images in 0.03 seconds

$ diff qnr.py qnr3.py
$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment