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
import eventlet | |
import time | |
from eventlet.green import urllib2 | |
urls = [ | |
"http://www.amazon.com/", | |
"http://www.google.com/", | |
"http://www.twitter.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
var kit = require('typekit'); | |
var API_KEY = 'YOUR_API_KEY'; | |
kit.list(API_KEY, function(err, data) { | |
if (err) return console.log(err); | |
var kits = data.kits; | |
for (var i = 0; i < kits.length; i++) { | |
kit.remove(API_KEY, kits[i].id, function(err, data) { | |
if (err) return console.log(err); |
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
// | |
// UIColor+HexString.h | |
// | |
#import <Foundation/Foundation.h> | |
@interface UIColor (HexString) | |
+ (UIColor *)colorWithHexString:(NSString *)hexString; |
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
// From https://github.com/marcello3d/node-buffalo/blob/master/lib/objectid.js | |
var machineHash = crypto.createHash('md5').update(os.hostname()).digest('binary'); |