Created
June 4, 2014 05:10
-
-
Save capttwinky/05735bb22e15dcd55c58 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env python | |
import qrcode | |
with open(__file__) as ofile: | |
mcnts = ofile.read()[:-1] | |
qrcode.make(mcnts).save('quine_qr.png') | |
print(mcnts) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
$ 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
$