摘要: ```setattr( self, '_events', {e._event_name: e for _, e in getmembers(self, lambda x: ismethod(x) and hasattr(x, '_event_name'))})``` 阅读全文
posted @ 2017-04-28 10:42 白云辉 阅读(302) 评论(0) 推荐(0) 编辑
摘要: [image](https://hub.tenxcloud.com/repos/tenxcloud/postgres)## start a postgres instance```docker run --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword -d postgres```## connect to it from an a... 阅读全文
posted @ 2017-04-28 10:29 白云辉 阅读(173) 评论(0) 推荐(0) 编辑
摘要: [TOC]## remove_all_pyc```find . -name "*.pyc" -exec git rm -f {} \;```## find_all_links```import requestsimport re# get urlurl = input('Enter a URL (include `http://`): ')# connect to the urlwebsite =... 阅读全文
posted @ 2017-04-28 10:16 白云辉 阅读(1325) 评论(0) 推荐(0) 编辑