- Update HISTORY.md
- Commit the changes:
git add HISTORY.md
git commit -m "Changelog for upcoming release 0.1.1."
- Update version number (can also be minor or major)
bumpversion patch
git add HISTORY.md
git commit -m "Changelog for upcoming release 0.1.1."
bumpversion patch
package main | |
import ( | |
"bytes" | |
"fmt" | |
"io" | |
"log" | |
"mime/multipart" | |
"net/http" | |
"os" |
import sys | |
import time | |
import resource | |
s = sys.argv[1].split('.') | |
lru = __import__(s[0]).__dict__[s[1]] | |
m = resource.getrusage(resource.RUSAGE_SELF).ru_maxrss | |
t = time.clock() |
为了更全面的展示你自己,你可以回答以下题目,每个问题你都可以不作答,不会减分,只是答的好的话会加分。 | |
1. 有哪些兴趣爱好和擅长 | |
2. 常去哪些技术网站和社区 | |
3. 参与过开源项目,做了什么贡献 | |
4. 常用哪些组件,库或框架,哪个是你最熟悉最拿手的 | |
5. 完整看完过哪些技术书籍,哪本是你反复看过的,哪本对你影像最大 | |
6. 使用过哪些编程语言,最擅长哪个语言? | |
7. 有没有自己的域名,网站,博客,github,stackoverflow ,v2ex,知乎,微博,twitter,google plus账号 | |
8. 精通正则表达式吗? | |
9. c学的如何? 计算机组成原理学的咋样? |
#!/bin/bash | |
# Extract a subproject's master branch from a specified repo into a new | |
# repository in the target directory, preserving history. | |
# usage: git-subdir-newrepo.sh path/to/repo newrepo_path subproject_path | |
# Based on stuff I found here: | |
# http://airbladesoftware.com/notes/moving-a-subdirectory-into-a-separate-git-repository | |
EXPECTED_ARGS=3 | |
E_BADARGS=65 |
virtualenv --no-site-packages hodor | |
hodor/bin/pip install simplejson ujson cbor tnetstring msgpack-python | |
curl -s 'http://www.json-generator.com/api/json/get/cvfsLVmKiG?indent=2' > test.json | |
hodor/bin/python shootout.py |
# Nginx+Unicorn best-practices congifuration guide. Heartbleed fixed. | |
# We use latest stable nginx with fresh **openssl**, **zlib** and **pcre** dependencies. | |
# Some extra handy modules to use: --with-http_stub_status_module --with-http_gzip_static_module | |
# | |
# Deployment structure | |
# | |
# SERVER: | |
# /etc/init.d/nginx (1. nginx) | |
# /home/app/public_html/app_production/current (Capistrano directory) | |
# |
""" | |
A file lock implementation that tries to avoid platform specific | |
issues. It is inspired by a whole bunch of different implementations | |
listed below. | |
- https://bitbucket.org/jaraco/yg.lockfile/src/6c448dcbf6e5/yg/lockfile/__init__.py | |
- http://svn.zope.org/zc.lockfile/trunk/src/zc/lockfile/__init__.py?rev=121133&view=markup | |
- http://stackoverflow.com/questions/489861/locking-a-file-in-python | |
- http://www.evanfosmark.com/2009/01/cross-platform-file-locking-support-in-python/ | |
- http://packages.python.org/lockfile/lockfile.html |