Skip to content

Instantly share code, notes, and snippets.

View galori's full-sized avatar

Gall Steinitz galori

  • San Francisco, CA
View GitHub Profile
diff <(git show recurring) <(git show recurring_off_of_hotfix)
#converted from the python script here: http://gist.github.com/88057
class UserAgent
# Some mobile browsers which look like desktop browsers.
MOBILE = /(iphone|ipod|blackberry|android|palm|windows\s+ce)/i
DESKTOP = /(windows|linux|os\s+[x9]|solaris|bsd)/i
BOT = /(spider|crawl|slurp|bot)/i
#Anything that looks like a phone isn't a desktop.
#Anything that looks like a desktop probably is.