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
module QrCodeHelper | |
def qr_code(string, options={}) | |
base_size = options.fetch(:width, 200) | |
@qr_logo = options.fetch(:logo, "qr_code_logo.png") | |
@qr_logo_size = options.fetch(:logo_size, 48) | |
level = options.fetch(:level, :l) | |
@qr_data = RQRCode::QRCode.new(string, level: level).to_s.split("\n").collect(&:chars) | |
@qr_size = @qr_data.size |
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
1033edge.com | |
11mail.com | |
123.com | |
123box.net | |
123india.com | |
123mail.cl | |
123qwe.co.uk | |
150ml.com | |
15meg4free.com | |
163.com |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |