Python - 上传下载简单实现

下载

FQKDownloader.py

1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/python
#coding:utf-8

import urllib

class FQKDownloader:

def __init__(self):
pass

def request(self, url, target_path):
print 'Downloading %s to %s...' % (url, target_path)
urllib.urlretrieve(url, target_path)
print 'Done!'

帷幕 - 2016

帷幕即将落下,2016 这场剧似乎只演了五分钟。

4000+ 次 svn 提交,入手 180+ 本书,粗读 100+ 本,看花滑节目 200+ 人次,睡觉 2000+ h,跑步 500+ km,下厨 10+ 次,看电影 4 场,微信联系人 in/out=15/30,长高了 0 cm,重了 8 斤。

macOS apache 异常小记

一觉醒来,本机服务不能正常访问了。

1
apachectl configtest

agentzh 的 Nginx 教程

传送门: http://openresty.org/download/agentzh-nginx-tutorials-zhcn.html

php 和 Java 中的 Throwable

Java

Java 中,Throwable 为最底层的异常/错误,是一个 class;直接针对 Throwable 进行 catch 是可行的。

Photoshop 查看颜色不透明度

参考链接: http://stackoverflow.com/questions/2131949/how-to-find-the-alpha-channel-transparency-value-of-a-pixel-in-a-png-image

Surge 科学上网

OpenResty 学习笔记 1

关于 OpenResty

官方链接: http://openresty.org/cn/

iCloud Drive 相关

设置

NSDataDetector 相关

参考链接