\thispagestyle{empty}
\changepage{}{}{}{-0.5cm}{}{2cm}{}{}{}
\
\clearpage \changepage{}{}{}{0.5cm}{}{-2cm}{}{}{}
| curl -kL http://xrl.us/pythonbrewinstall | bash | |
| yum groupinstall "Development tool" | |
| yum install zlib-devel bzip2-devel openssl-devel ncurses-devel |
| 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] |
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)That's it!
| " Конфигурационный файл asyncee, 2013 {{{ | |
| " Спасибо всем, кто выложил в открытый доступ статьи, | |
| " конфигурационные файлы для vim, описание плагинов. | |
| " Это помогло мне в создании этого конфига. | |
| " http://welinux.ru | |
| " http://h0rr0rr-drag0n.blogspot.com | |
| " http://vimeo.com | |
| " http://habrahabr.ru | |
| " ...и многим другим... | |
| " }}} |