quixote是一个很落后的框架,使用它只有一个理由,便是我们亲爱的历史原因。
quixote使用python的类来模拟php的目录结构。
_q_exports
: 列出这一"目录"下的所有"文件"_q_index(request)
: 相当于index.php_q_lookup(request, param)
: 相当于method_missing
下述密码均摘自互联网 | |
【字母表顺序】-数字 | |
加密的时候,经常要把A~Z这26个字母转换成数字,最常见的一种方法就是取字母表中的数字序号。A代表1,B代表2,C代表3... | |
字母 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z | |
数字 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | |
# 1. Make sure you have nginx sub module compiled in | |
# nginx -V 2>&1 | grep --color=always '\-\-with\-http_sub_module' | |
# 2. add two directives below at HTTP level | |
# nginx.conf | |
http { | |
# ...... | |
sub_filter '</head>' '<style type="text/css">html{ filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); -webkit-filter: grayscale(100%); filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */ |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from flask import session, g, Flask, request, abort | |
app = Flask(__name__) | |
urls = ( | |
'/song/<int:sid>', 'Song', | |
) |
# *.google.com 笛卡尔集 | |
203.208.45.193 | |
203.208.45.195 | |
203.208.45.196 | |
203.208.45.200 | |
203.208.45.192 | |
203.208.45.201 | |
203.208.45.202 | |
203.208.45.197 | |
203.208.45.203 |
#!/usr/bin/env python | |
#-*- coding:utf-8 -*- | |
def dispatch(entry_object, path, spliter="/"): | |
"""Starting with an entry object and dispatching the request by url path. | |
>>> class GroupList(object): | |
... exports = frozenset(["create"]) | |
... |