This file contains 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
qps (framework) | |
ppa (template) | |
mootools (ajax) | |
hg (vcs) |
This file contains 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
fabric | |
virtualenv | |
pip | |
sphinx | |
nose | |
coverage |
This file contains 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
django - django.utils.datastructures.MultiValueDict (iteritems() - (key, last_value)) | |
werkzeug - werkzeug.datastructures.MultiDict (iteritems() - (key, first_value)) | |
webob - webob.multidict.MultiDict (iteritems() - (key, value))если у ключа несколько значений, то будет несколько | |
кортежей (key, value1) (key, value2)... | |
webware - FieldStorage | |
nevow - обычный словарь (!) http://www.divmod.org/trac/browser/tags/releases/Nevow-0.9.33/nevow/wsgi.py#L154 | |
woven - см. выше (nevow) | |
turbogears2 - использует pylons | |
pylons - использует webob |
This file contains 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
# -*- coding: utf-8 -*- | |
class MultiValueDict(dict): | |
""" | |
Словарь с возможностью соответствия | |
нескольких значений одному ключу. | |
>>> list_ = (('foo','bar'),('spam','eggs'),('foo','baz')) | |
>>> md = MultiValueDict(list_) | |
>>> md['foo'] | |
['bar', 'baz'] |
This file contains 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
# -*- coding: utf-8 -*- | |
import random | |
counts = (10,100,1000) | |
benchmark = [] | |
for count in counts: | |
victims = ([], {}) |
This file contains 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
Дизъюктивная нормальная форма | |
hook for merkurial | |
threaded map (python, groovy) |
This file contains 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
var Key = new Class({ | |
initialize:function(symbol, handler){ | |
this.symbol = symbol; | |
this.handler = handler; | |
}, | |
render:function(){ | |
return new Element('a',{ | |
'href':'#', | |
'text':this.symbol, | |
}); |
This file contains 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
# -*- coding: utf-8 -*- | |
from random import random | |
letters_map={ | |
0:u'а', | |
1:u'б', | |
2:u'в', | |
3:u'г', | |
4:u'д', |
This file contains 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
#!/bin/sh | |
# Script for starting multiple fcgi instance. | |
# Count of instances is first argument of script. | |
PARAMS="runfcgi method=threaded daemonize=yes errlog=errlog.log workdir=./" | |
case $2 in | |
"start") | |
if [ $1 -le 1 ] |
This file contains 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
# -*- coding: utf-8 -*- | |
import sys | |
import logging | |
import os | |
from os import path | |
logger = logging.getLogger(__name__) | |
def prepare_dir(filename): |
OlderNewer