Skip to content

Instantly share code, notes, and snippets.

@axce1
axce1 / .gitignore
Last active August 29, 2015 14:20 — forked from abulte/.gitignore
We couldn’t find that file to show.
" Конфигурационный файл asyncee, 2013 {{{
" Спасибо всем, кто выложил в открытый доступ статьи,
" конфигурационные файлы для vim, описание плагинов.
" Это помогло мне в создании этого конфига.
" http://welinux.ru
" http://h0rr0rr-drag0n.blogspot.com
" http://vimeo.com
" http://habrahabr.ru
" ...и многим другим...
" }}}
@axce1
axce1 / tree.md
Created March 11, 2014 07:28 — forked from hrldcpr/tree.md

One-line Tree in Python

Using Python's built-in defaultdict we can easily define a tree data structure:

def tree(): return defaultdict(tree)

That's it!

@axce1
axce1 / gist:8455414
Created January 16, 2014 13:58
redis little book

\thispagestyle{empty} \changepage{}{}{}{-0.5cm}{}{2cm}{}{}{} The Little Redis Book, By Karl Seguin\

\clearpage \changepage{}{}{}{0.5cm}{}{-2cm}{}{}{}

Об этой книге

Лицензия

@axce1
axce1 / gist:7989908
Created December 16, 2013 16:30
create mongoDB
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]
@axce1
axce1 / gist:6483255
Created September 8, 2013 09:27
centos pythonbrew
curl -kL http://xrl.us/pythonbrewinstall | bash
yum groupinstall "Development tool"
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel