Skip to content

Instantly share code, notes, and snippets.

@shingchi
shingchi / Unicode中文和特殊字符的编码范围
Created January 6, 2015 06:39
Unicode中文和特殊字符的编码范围
根据Unicode5.0整理如下:
1)标准CJK文字
http://www.unicode.org/Public/UNIDATA/Unihan.html
2)全角ASCII、全角中英文标点、半宽片假名、半宽平假名、半宽韩文字母:FF00-FFEF
http://www.unicode.org/charts/PDF/UFF00.pdf
3)CJK部首补充:2E80-2EFF
http://www.unicode.org/charts/PDF/U2E80.pdf
@squarism
squarism / happy_golang_libraries.md
Last active November 4, 2017 08:57
Happy Time Golang Libraries

Happy Time Go Libraries.

Another curated list like awesome-go.
Not complete. Not authoritative. Not cupcake.
Send suggestions: @squarism :)
☆ = Github stars (in November 2016)


Adapters and Drivers

@amdgigabyte
amdgigabyte / compress.sh
Created April 20, 2012 13:49
YUIcompressor Shell Script
#! /bin/bash
# YUI Compressor Bash Script
# @author qiaofu@taobao.com
# @version 0.1 2012-04-20
# 安装 #
# 1. 设置好你的JAVA_HOME环境变量
# 2. 在自己的家目录下面创建一个bin文件夹 ~/bin
# 2. 复制这个 compress.sh 以及 yuicompressor.jar 到 ~/bin,并执行
# chmod +x compress.sh(以保证compress.sh可执行)
@atiw003
atiw003 / nginx-font-serving
Created August 8, 2011 14:57 — forked from sideshowcoder/nginx-font-serving
Nginx header write for serving fonts to firefox cross domain
For nginx,
location ~* \.(eot|ttf|woff)$ {
add_header Access-Control-Allow-Origin *;
}
Or better way inside virtual host location use,
Inside location use
if ($request_filename ~* ^.?/([^/]?)$)