Skip to content

Instantly share code, notes, and snippets.

View lotem's full-sized avatar

居戎氏 lotem

  • Beijing, China
View GitHub Profile
@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 / 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 / rime_deployer
Created April 26, 2013 03:22
使用 Squirrel 自帶的命令行工具 rime_dict_manager 和 rime_deployer
#!/bin/bash
#
# put this script in ~/Library/Rime, then deploy Rime for Squirrel:
# ./rime_deployer --build . "/Library/Input Methods/Squirrel.app/SharedSupport/"
# see other supported options:
# ./rime_deployer
DYLD_LIBRARY_PATH="/Library/Input Methods/Squirrel.app/Contents/Frameworks" "/Library/Input Methods/Squirrel.app/Contents/MacOS/rime_deployer" $@
@lotem
lotem / luna_pinyin.custom.yaml
Last active April 16, 2022 08:02
導入碼表示例
# luna_pinyin.custom.yaml
# 修改字典名爲 luna_pinyin.kunki
# 其對應的用戶詞典名取句點之前部分即 luna_pinyin
patch:
translator/dictionary: luna_pinyin.kunki
@lotem
lotem / custom_phrase.txt
Last active October 19, 2023 07:41
Rime 自定義短語文件樣例
# Rime table
# coding: utf-8
#@/db_name custom_phrase.txt
#@/db_type tabledb
#
# 用於【朙月拼音】系列輸入方案
# 【小狼毫】0.9.21 以上
#
# 請將該文件以UTF-8編碼保存爲
# Rime用戶文件夾/custom_phrase.txt
@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
@lotem
lotem / gist:4483504
Last active February 13, 2020 09:34 — forked from anonymous/gist:4483496
用移動硬盤同步RIME用戶詞典的樣例
# 用移動硬盤同步RIME用戶詞典的樣例
# 用於同步的分區名爲share(盤符H:),同步文件夾是 home/rimesync,Linux 用戶名爲 lotem
# 每套輸入法分別在 installation.yaml 裏設 sync_dir 和 installation_id
# 接上硬盤,Windows 和 Mac 一鍵完成同步。Linux 用 rime_dict_manager -s 同步。
➜ ~ for x in /media/share/home/rimesync/*/installation.yaml ~/.config/ibus/rime/installation.yaml; do echo $x; echo '---'; cat $x; echo '...'; done
/media/share/home/rimesync/lotem-macbook/installation.yaml
---
distribution_code_name: Squirrel
distribution_name: "鼠须管"
@lotem
lotem / user.conf
Created November 6, 2012 10:36
百度输入法配置文件——自定义双拼方案
ShuangPin :
{
ZiRanMa :
{
YinJie :
{
a="oa";
ai="ol";
an="oj";
ang="oh";