Skip to content

Instantly share code, notes, and snippets.

View UniIsland's full-sized avatar

Huang, Tao UniIsland

View GitHub Profile
@UniIsland
UniIsland / root.dot
Created September 1, 2012 06:28
topic hierarchy experiment
digraph G {
/* formating */
rankdir=LR;
/* top level */
"根" -> {学科; 产业; 实体; 生活、艺术、文化与活动; 「形而上」; 元话题; 未归类}
/* 2nd level */
学科 -> {自然科学; 人文学科; 工程与技术; 综合与新兴学科}
产业 -> {工业; 农业; 服务业; 媒体产业; 金融产业; 商业; 互联网产业}
@UniIsland
UniIsland / SimpleHTTPServerWithUpload.py
Created August 14, 2012 04:01
Simple Python Http Server with Upload
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""
@UniIsland
UniIsland / index.php
Created August 14, 2012 03:42
php upload progress
<?php
/*
+----------------------------------------------------------------------+
| Uploadprogress extension |
+----------------------------------------------------------------------+
| Copyright (c) 2006-2008 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
@UniIsland
UniIsland / upyun.py
Created May 11, 2012 07:44 — forked from gccyugi/upyun.py
upyun-python-api
# -*- coding: utf-8 -*-
import md5 as mmd5
DEBUG = False
api_upyun = 'api.upyun.com'
ENDPOINT_V0 = 'v0.' + api_upyun
ENDPOINT_V1 = 'v1.' + api_upyun
@UniIsland
UniIsland / README
Created May 7, 2012 04:38
python cross process data sharing with mmap
# Intro
extremely simple and unsophisticated cross process data sharing
supports one read-write master process and an arbitrary number of read-only processes
please consider using pickle/cPickle/ctype to store complex data
# References