qrencode -o - -l L -s 10 -- "$(xsel)" | displayShow HN: QR Codify, The Most Useful Snippet I've Ever Written
41–50 of 117 posts
Re: Show HN: QR Codify, The Most Useful Snippet I've Ever Written
#42 qrdisplay () {
qrencode -o - "$1" | display
}Re: Show HN: QR Codify, The Most Useful Snippet I've Ever Written
#43Just keep in mind that Google's QR Code (Infographic) API has been deprecated.
Yeah, I was about to add that too. Sad, but fun to play with until it is gone ;)
On an X11 environment, I can select some text and get the same results on the command line with something like:
xsel | qrencode -o - | feh -FZ
None of these commands are standard on any distribution, but you can easily install them or use alternatives. You can also make this an alias, hotkey, etc.[1] http://fukuchi.org/works/qrencode/
Edit: No need for temporary file
Re: Show HN: QR Codify, The Most Useful Snippet I've Ever Written
#44I'm using a zsh function with similar functionality for exactly the same purpose: qrdisplay () { qrencode -o - "$1" | display }
Re: Show HN: QR Codify, The Most Useful Snippet I've Ever Written
#45I created a bookmarklet that does the same thing for any website you're browsing. Makes it easy to transfer from PC to phone, assuming the phone can read QR codes. http://keyboardp.tumblr.com/post/38976790879/send-webpage-fr...
Re: Show HN: QR Codify, The Most Useful Snippet I've Ever Written
#46I use Chrome to Phone with my android phone. One click on a button sends the current url to my browser, or I can select any text, right click it and send it to my phone where it is then available on my clipboard to paste wherever. It also keeps a history of all this on my phone so I can recall what I sent last week. That feature alone is why I'll probably never own an iPhone. Edit: Still a cool extension you've got t…
Re: Show HN: QR Codify, The Most Useful Snippet I've Ever Written
#47I created a bookmarklet that does the same thing for any website you're browsing. Makes it easy to transfer from PC to phone, assuming the phone can read QR codes. http://keyboardp.tumblr.com/post/38976790879/send-webpage-fr...
Re: Show HN: QR Codify, The Most Useful Snippet I've Ever Written
#48 javascript:(function(){ var i = new Image();i.src = 'http://chart.apis.google.com/chart?cht=qr&chs=300x300&chl='+ encodeURIComponent(getSelection());i.onclick=function(){i.parentNode.removeChild(i)};i.setAttribute('style', 'position:fixed;top:50%;left:50%;margin:-150px 0 0 -150px;box-shadow:0 0 20px rgba(0,0,0,0.2)');document.body.appendChild(i)})();
Create a new bookmark, name it "QR Selection" and add the above code as the URL. Only tested in Chrome.Edit: Added missing apostrophe.
Re: Show HN: QR Codify, The Most Useful Snippet I've Ever Written
#49I created a bookmarklet that does the same thing for any website you're browsing. Makes it easy to transfer from PC to phone, assuming the phone can read QR codes. http://keyboardp.tumblr.com/post/38976790879/send-webpage-fr...
Would be even more useful if it could QR-ify any currently select text. I was just thinking of doing that myself.
https://gist.github.com/findel/5099737
Credit for the selection code: http://stackoverflow.com/questions/4652734/return-html-from-...
[Edit: created gist]
Re: Show HN: QR Codify, The Most Useful Snippet I've Ever Written
#50Cool, I like it and would use it daily. I sometimes use dropbox like a pastebin for same thing. QR Code transfer is probably patent encumbered (like well almost everything). Nokia has app to do this but in reverse. Look at photo gallery on phone in their app. When you find picture you want to see, open browser on desktop and see QR code. Point camera at screen and the QR code in browser is replaced by image from phon…
According to Wikipedia, QR code is free of any license. http://en.wikipedia.org/wiki/QR_code