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
function getOS() { | |
var os = [ | |
['Windows 3.11', /Win16/i], | |
['Windows 95', /(Windows 95)|(Win95)|(Windows_95)/i], | |
['Windows 98', /(Windows 98)|(Win98)/i], | |
['Windows 2000', /(Windows NT 5.0)|(Windows 2000)/i], | |
['Windows XP', /(Windows NT 5.1)|(Windows XP)/i], | |
['Windows Server 2003', /(Windows NT 5.2)/i], | |
['Windows Vista', /(Windows NT 6.0)/i], | |
['Windows 7', /(Windows NT 6.1)/i], |
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
/* | |
* Proof of Concept | |
* webkit specific library that (eventually) implements the jQuery API ~ish | |
*/ | |
(function( window, undefined ) { | |
var webkitQuery = function (selector, context) { | |
return new WebkitQuery(selector, context); | |
}; |
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
import logging | |
import random | |
import tornado.httpserver | |
import tornado.ioloop | |
import tornado.options | |
import tornado.web | |
from tornado.options import define, options |
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
from twitter.api import Twitter | |
USERNAME = 'r1cky' # set to your/any username | |
twitter = Twitter() # username/password not required for these calls | |
friends = twitter.friends.ids(screen_name=USERNAME) | |
followers = twitter.followers.ids(screen_name=USERNAME) | |
guilty = [x for x in friends if x not in followers] | |
print "There are %s tweeps you follow who do not follow you" % len(guilty) |
NewerOlder