Foursquare promo QR codes
ummm i see what you did there… but i’m still reblogging you. evil genius.
so if delicious library lets me scan with any camera, can’t i scan with my iPhone camera? HMMMMMM????
Frustrated with how long it takes for your phone’s GPS to get a fix? Tired of searching for your favorite venue instead of actually talking to your friends? I was too, and that’s why i came up with this: 2d barcodes (aka QR codes. and no, i dont know what QR stands for) for foursquare venues! The script below generates a QR code for the specified venue’s “Venue” page on http://m.foursquare.com, allowing patrons to easily scan the QR code using their Android Phone or Blackberry (does the iPhone have a QR code reader?). This gets you to the Venue page, where you can check out the Tips section for what to order, and check in. Oh yeah, and to run it, you’ll need imagemagick’s convert tool.
#!/bin/bash # takes venue id as an argument, generates an image of a qrcode overlayed on # the 4sq logo. # BG_FILE="http://x.nerdcircus.org/4sq/4sqfade.png" venue=$1 qr_url="http://chart.apis.google.com/chart?cht=qr&chs=350x350&chl=http%3A%2F%2Fm.foursquare.com%2Fvenue%2F${venue}" convert $BG_FILE \( ${qr_url} -resize 700x700 -alpha set -transparent white \) -composite venue-${venue}.pngHere’s an example:
