Skip to content

Instantly share code, notes, and snippets.

View axiaoxin's full-sized avatar
🌙
不忙着圆缺 春天不走远

axiaoxin axiaoxin

🌙
不忙着圆缺 春天不走远
View GitHub Profile
git push origin --delete <branchName>
import datetime
import hashlib
import random
def gray_publish_check(app_lastest_publish_time, device_id):
app_publish_date = datetime.datetime.strptime(app_lastest_publish_time,
'%Y-%m-%d').date()
today = datetime.date.today()
if today - app_publish_date <= datetime.timedelta(days=1):
http://api.rottentomatoes.com/api/public/v1.0/lists/movies/in_theaters.json?apikey=7waqfqbprs7pajbz28mqf6vz
@axiaoxin
axiaoxin / node加速.md
Last active August 29, 2015 14:22
node加速.md
ALTER TABLE `tb_order_receipt` CHANGE COLUMN `id` `id` INT(11) NOT NULL AUTO_INCREMENT;
To summarize:
Apache creates processes and threads to handle additional connections. While Nginx is said to be event-driven, asynchronous, and non-blocking.
Apache is powerful but Nginx is fast. Nginx serves up static content quicker.
Nginx includes advanced load balancing and caching abilities.
Nginx is a lot lighter than Apache
brew install libjpeg
import urllib2
from multiprocessing.dummy import Pool as ThreadPool
urls = [
'http://www.python.org',
'http://www.python.org/about/',
'http://www.onlamp.com/pub/a/python/2003/04/17/metaclasses.html',
'http://www.python.org/doc/',
'http://www.python.org/download/',
'http://www.python.org/getit/',