Skip to content

Instantly share code, notes, and snippets.

@gkzhong
gkzhong / Checkstyle pre-commit hook
Created October 19, 2012 08:04 — forked from davetron5000/Checkstyle pre-commit hook
Pre Commit Hook for running checkstyle on changed files
#!/usr/bin/perl
#
# Pre-commit hook for running checkstyle on changed Java sources
#
# To use this you need:
# 1. checkstyle's jar file somewhere
# 2. a checkstyle XML check file somewhere
# 3. To configure git:
# * git config --add checkstyle.jar <location of jar>
# * git config --add checkstyle.checkfile <location of checkfile>
@gkzhong
gkzhong / README
Created August 25, 2012 15:36
在Rime五筆輸入方案中添加繁體輸出
一,安裝簡體->繁體映射碼表:(該項目由opencc維護:http://code.google.com/p/opencc)
文件1:http://code.google.com/p/rimeime/source/browse/trunk/misc/opencc/data/simp_to_trad_characters.ocd
文件2:http://code.google.com/p/rimeime/source/browse/trunk/misc/opencc/data/simp_to_trad_phrases.ocd
安裝位置:共享資料目錄
如:/Library/Input Methods/Squirrel.app/Contents/SharedSupport/opencc
二,添加opencc簡繁配置文件:
詳見:zhs2zht.ini
安裝位置:共享資料目錄
如:/Library/Input Methods/Squirrel.app/Contents/SharedSupport/opencc