Skip to content

Instantly share code, notes, and snippets.

View lotem's full-sized avatar

居戎氏 lotem

  • Beijing, China
View GitHub Profile
@lotem
lotem / wugniu.custom.yaml
Created March 11, 2012 06:42
Rime 吳語輸入方案模糊音定製檔
# 文件名: wugniu.custom.yaml
# 爲 wugniu.schema.yaml 打補靪
# #號爲註釋符號,要是不需要開始某一行模糊功能請在該行前頭加#號,要是需要該行模糊功能請去掉前面#號。注意要使用的行的對齊。
patch:
"speller/algebra":
- abbrev/^([bcdfghjklprstvwxyz]).+$/$1/ # 對齊標準行
- derive/^tzi/ci/ # 以下四行是模糊分尖團音
- derive/^tsi/chi/
- derive/^zi/ji/
- derive/^si/xi/
@lotem
lotem / active.md
Created December 27, 2013 13:09 — forked from paulmillr/active.md

Most active GitHub users (git.io/top)

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Sat, 22 Dec 2012 23:34:58 GMT till Sun, 22 Dec 2013 23:34:58 GMT.

Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:

githubUsers
 .filter((user) -> user.followers > 229)
@lotem
lotem / gist:2335341
Created April 8, 2012 06:55
倉頡五代構詞碼
#
# 倉頡五代構詞碼
#
# 碼表由惜緣兄製作
# 佛振修訂於 2012-04-08
#
# License: GPL
#
# 說明:
# 詞彙編碼中,單字的取碼有幾種情況:
@lotem
lotem / default.custom.yaml
Created October 20, 2012 06:02
定製標點符號:「」直接上屏
# default.custom.yaml
patch:
punctuator/half_shape: &quotes
'[': 「
']': 」
'{': 『
'}': 』
punctuator/full_shape: *quotes
@lotem
lotem / stenotype_zhung.txt
Created September 27, 2016 05:29
中州話打字速記法
https://www.evernote.com/shard/s64/sh/00db69f5-cb6e-44df-ab36-03200d3a35fa/673b24375c29312300e4cb698675afa5
中州話打字速記法
#stenotype
zmBo/ 字母表
b 不 p 普 m 母 f 父 v 無
B 比 P 皮 M 米 F 非 V 未
@lotem
lotem / test.js
Created January 13, 2014 08:03 — forked from jmyrland/test.js
/**
* Modify the parts you need to get it working.
*/
var should = require('should');
var request = require('../node_modules/request');
var io = require('socket.io-client');
var serverUrl = 'http://localhost';
@lotem
lotem / cangjie5.custom.yaml
Last active December 19, 2015 16:09
自家用的倉頡定製檔
patch:
engine/translators:
- punct_translator
- table_translator@custom_phrase
- reverse_lookup_translator
- table_translator
custom_phrase:
dictionary: ""
user_dict: custom_phrase
db_class: stabledb
# Rime schema settings
# encoding: utf-8
schema:
schema_id: fuzzy_cangjie5
name: 倉頡〔通配符〕
version: "0.1"
author:
- 發明人 朱邦復先生
- 雪齋加入通配符
@lotem
lotem / cangjie_quick.schema.yaml
Created June 10, 2013 06:28
倉頡碼打單字,倉頡碼、速成碼混打詞句。 演示 fuzz 拼寫運算與 translator/strict_spelling: 選項。
# Rime schema settings
# encoding: utf-8
schema:
schema_id: cangjie_quick
name: 倉頡+速成
version: "0.1"
author:
- 佛振 <chen.sst@gmail.com>
description: |
@lotem
lotem / cangjie_pinyin.dict.yaml
Created January 10, 2013 15:05
【倉頡拼音】輸入方案 以拼寫運算實現輔助碼的示例
This file has been truncated, but you can view the full file.
# Rime dictionary
# encoding: utf-8
---
name: cangjie_pinyin
version: "1.0"
sort: by_weight
use_preset_vocabulary: true
max_phrase_length: 5
min_phrase_weight: 100