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 gevent.monkey | |
gevent.monkey.patch_all() | |
import time | |
import pymongo | |
connection = pymongo.Connection(use_greenlets=True) | |
def task(): | |
collection = connection.autoref.all_cars |
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
sudo apt-get install make | |
sudo apt-get install tree | |
sudo apt-get install unzip | |
sudo apt-get install htop | |
sudo apt-get install ntp | |
sudo apt-get install g++ | |
sudo apt-get install libssl-dev | |
sudo apt-get install apache2 | |
sudo apt-get install git-core | |
git config --global user.name liushuaikobe |
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 java.net.UnknownHostException; | |
import com.mongodb.DB; | |
import com.mongodb.MongoClient; | |
import com.qingcong.mobile.constant.AppConfig; | |
public class MongoHelper { | |
private MongoClient mongoClient; | |
private DB db; |
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
''' | |
Created on 2013-6-13 | |
@author: liushuai | |
''' | |
import time | |
badCharShift = {} | |
goodSuffixShift = {} |
NewerOlder