## About Me
- 09年底至今,主要工作内容:基于Django的Web开发,从0.96版本到1.7,向Django及相关社区贡献了50+ commits
- 期间涉猎了javascript, golang, clojure等开发语言,对nginx, tornado, nodejs等工具的异步模型有一定了解
- 熟悉Linux下开发,了解部署,但之前未接触过Django的服务部署调优
curl -L https://www.atom.io/api/updates/download -A "Atom/0.1 CFNetwork/1.5" > Atom.zip | |
unzip Atom.zip | |
mv Atom.app /Applications/ |
# -*- coding:utf-8 -*- | |
import greenlet | |
# 用greenlet模拟lua的coroutine.wrap语法 | |
def co_yield(*args, **kwargs): | |
return greenlet.getcurrent().parent.switch(*args, **kwargs) | |
class wrap(object): | |
def __init__(self, fn): |
server { | |
listen 80; | |
server_name localhost; | |
#charset koi8-r; | |
access_log /var/log/nginx/essay.access.log main; | |
location / { | |
proxy_pass http://essay_demo; | |
proxy_intercept_errors on; | |
proxy_redirect off; |