每行不超过79个字符。
保持相同缩进方式,TAB或者空格。 采用4个空格。
缩进的基本情形:
- 函数体
- if语句体
| {"my_tags":[],"html":"\n\n<div class=\"indentpop1 clearfix\">\n <form action=\"\/j\/subject\/1300802\/interest\" method=\"POST\" class=\"j a_interest_form movie-sns\"><div style=\"display:none;\"><input type=\"hidden\" name=\"ck\" value=\"Uw7q\"/></div>\n \n\n <div class=\"interest-form-hd\">\n <span class=\"gact rr\">\n <a href=\"javascript:;\"onclick=\"close_dialog()\">x<\/a>\n <\/span>\n <h2>添加收藏:修改<\/h2>\n <\/div>\n <div class=\"interest-status\" style=\"float:left;font-size:14px;margin-bottom:15px\">\n <label>\n <input type=\"radio\" value=\"wish\" name=\"interest\" checked\/> 想看\n <\/label> \n <label>\n <input type=\"radio\" value=\"collect\" name=\"interest\" \/> 看过\n <\/label> \n <\/div>\n\n <div class=\"interest-rating\">\n <sp |
| # test environment | |
| server{ | |
| listen 80; | |
| server_name example.com; | |
| access_log /home/david/Gone/Work/zcms/logs/access_log; | |
| error_log /home/david/Gone/Work/zcms/logs/error_log; | |
| # root /home/david/Gone/Work/zcms/contents/viewer; | |
| location / { | |
| proxy_set_header HOST $host; |
| 9.5 陈奕迅演唱会1.30 http://202.116.194.117/G/影视频道/演唱会/陈奕迅演唱会1.30.rmvb | |
| 9.5 西城男孩爱就在这里伦敦演唱会 http://202.116.194.117/F/演唱会/其他/西城男孩爱就在这里伦敦演唱会.rmvb | |
| 9.5 英皇十周年演唱会 http://202.116.194.117/F/Mediafile/影视频道/演唱会/其他/英皇十周年演唱会.rmvb | |
| 9.5 肖申克的救赎.[中英双字.1024分辨率] http://202.116.194.117/G/影视频道/欧美/剧情/肖申克的救赎.[中英双字.1024分辨率].rmvb | |
| 9.5 [迈克尔杰克逊.-德国历史演唱会清晰版].Michael.Jackson.History.Concert.1997.TVrip.cd1 http://202.116.194.117/G/影视频道/演唱会/[迈克尔杰克逊.-德国历史演唱会清晰版].Michael.Jackson.History.Concert.1997.TVrip.cd1.avi | |
| 9.5 [电影天堂www.dygod.com]湖南卫视2009-2010跨年演唱会c http://202.116.194.117/G/影视频道/演唱会/[电影天堂www.dygod.com]湖南卫视2009-2010跨年演唱会c.rmvb | |
| 9.5 [电影天堂www.dygod.com]湖南卫视2009-2010跨年演唱会b(1) http://202.116.194.117/G/影视频道/演唱会/[电影天堂www.dygod.com]湖南卫视2009-2010跨年演唱会b(1).rmvb | |
| 9.5 [电影天堂www.dygod.com]湖南卫视2009-2010跨年演唱会a http://202.116.194.117/G/影视频道/演唱会/[电影天堂www.dygod.com]湖南卫视2009-2010跨年演唱会a.rmvb | |
| 9.5 [电影天堂www.dygod.com]2010台北最HIGH新年跨年晚会C http://202.116.194.117/G/影视频道/演唱会/[电影天堂www.dygod.com]2010台北最HIGH新年跨年晚会C.rmvb | |
| 9.5 [电影天堂www.dygod.com]2010台北最H |
| #!/usr/bin/python | |
| # -*- coding: utf8 -*- | |
| """ | |
| randombg.py | |
| by holys <[email protected]> | |
| = simple description = | |
| Simple script to change background pictures randomly and regularly | |
| Require setting up your crontab: |
| 60.28.250.194:82 | |
| 121.15.167.231:8080 | |
| 122.72.0.6:80 | |
| 114.80.240.6:808 | |
| 202.112.114.17:3128 | |
| 221.176.14.73:80 | |
| 122.113.28.52:3128 | |
| 218.247.138.40:80 | |
| 211.144.76.7:8181 | |
| 60.190.129.52:3128 |
| // ==UserScript== | |
| // @name douban topic search | |
| // @namespace http://www.douban.com/update/ | |
| // @version 0.1 | |
| // @description provide a topic search entry | |
| // @match http://www.douban.com/update/* | |
| // @match http://www.douban.com/* | |
| // @match http://www.douban.com/*/*/statuses | |
| // @copyright holys | |
| // ==/UserScript== |
这一步有点慢, 有些卡顿, 但是对后面的播放是没有影响的.
gource --title "easylib" --hide filenames -f -1920x1080 --camera-mode overview --auto-skip-seconds 0.3 --highlight-all-users --elasticity 0.1 -b 000000 --disable-progress -o gource.ppm
| #!/usr/bin/env python | |
| #-*- coding: UTF-8 -*- | |
| import requests | |
| import re | |
| url = 'http://www.douban.com/group/machome/discussion?start=%d' | |
| topic_ptn = re.compile(r'href=\"(.+?group/topic.+?)/\"') |
| #!/usr/bin/env python | |
| # coding: utf-8 | |
| from weibo import APIClient | |
| from config import APP_KEY, APP_SECRET, CALLBACK_URL, ACCESS_TOKEN, EXPIRES_IN | |
| def count_fake(): | |
| client = APIClient(app_key=APP_KEY, app_secret=APP_SECRET, | |
| redirect_uri=CALLBACK_URL) |