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
| " Конфигурационный файл asyncee, 2013 {{{ | |
| " Спасибо всем, кто выложил в открытый доступ статьи, | |
| " конфигурационные файлы для vim, описание плагинов. | |
| " Это помогло мне в создании этого конфига. | |
| " http://welinux.ru | |
| " http://h0rr0rr-drag0n.blogspot.com | |
| " http://vimeo.com | |
| " http://habrahabr.ru | |
| " ...и многим другим... | |
| " }}} |
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)That's it!
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 pymongo import Connection | |
| class MongoDB: | |
| def __init__(self, dbname): | |
| self.conn = Connection('localhost', 27017) | |
| self.db = self.conn[dbname] | |
| def createCollection(self, name=''): | |
| return self.db[name] |
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
| curl -kL http://xrl.us/pythonbrewinstall | bash | |
| yum groupinstall "Development tool" | |
| yum install zlib-devel bzip2-devel openssl-devel ncurses-devel |
