Created
August 15, 2013 09:23
-
-
Save ryuone/6239532 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
url = "http://www.yahoo.co.jp/" | |
qrcode = :qrcode.encode(url) | |
{:ok, fd} = :file.open('./yahoo.qr.png', [:write, :raw, :binary]) | |
:file.write(fd, :qrcode_demo.simple_png_encode(qrcode)) | |
:file.sync(fd) | |
:file.close(fd) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Original
Newer