Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View lotem's full-sized avatar

居戎氏 lotem

  • Beijing, China
View GitHub Profile
@staltz
staltz / introrx.md
Last active April 20, 2024 14:15
The introduction to Reactive Programming you've been missing
@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
@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@jlongster
jlongster / bloop.js
Last active September 5, 2022 23:33
bloop
(function() {
// Do not use this library. This is just a fun example to prove a
// point.
var Bloop = window.Bloop = {};
var mountId = 0;
function newMountId() {
return mountId++;
}
@LEOYoon-Tsaw
LEOYoon-Tsaw / fuzzy_cangjie5.schema.yaml
Created June 15, 2013 02:52
以「z」鍵作通配符,可替代一碼或多碼,取消原「z」鍵符號功能
# Rime schema settings
# encoding: utf-8
schema:
schema_id: fuzzy_cangjie5
name: 倉頡〔通配符〕
version: "0.1"
author:
- 發明人 朱邦復先生
- 雪齋加入通配符
@XuQK
XuQK / <SCHEMA_ID>.custom.yaml
Created November 23, 2012 03:18
Rime输入法特殊符号输入。
#只弄了我需要的,自己有需求的可以添加,我还另外改了几个标点符号,便于我自己使用
#建议直接复制进你的custom文档。
#欲使用本文件,你需要把文字候选数设置为7个,当然你也可以改变选择特殊符号的按键。
#作者E-mail:xuqiankun_66@qq.com
# Rime specific symbol settings
# encoding: utf-8无BOM
patch:
"punctuator/half_shape":
@ian128K
ian128K / bash_colours
Last active March 8, 2021 18:26
Shell script colours
## Colours and font styles
## Syntax: echo -e "${FOREGROUND_COLOUR}${BACKGROUND_COLOUR}${STYLE}Hello world!${RESET_ALL}"
# Escape sequence and resets
ESC_SEQ="\x1b["
RESET_ALL="${ESC_SEQ}0m"
RESET_BOLD="${ESC_SEQ}21m"
RESET_UL="${ESC_SEQ}24m"
# Foreground colours
@nameoverflow
nameoverflow / weasel.custom.yaml
Last active October 20, 2019 06:33
小狼毫高仿 Win10 内置输入法
patch:
preset_color_schemes/metro:
back_color: 0xffffff
border_color: 0x444444
hilited_back_color: 0xffffff
hilited_candidate_back_color: 0x444444
hilited_candidate_text_color: 0xffffff
hilited_text_color: 0x000000
name: "metro"
text_color: 0x000000
@NemoAlex
NemoAlex / gist:2879405
Created June 6, 2012 02:07
Squirrel 配色方案修改
更新:建议编辑 ~/Library/Rime/squirrel.custom.yaml 文件,而不要在 squirrel.yaml 上做改动
新版本加入了对边距宽高的订制,感谢作者
patch:
us_keyboard_layout: true
style/horizontal: false
style/font_face: "Helvetica Neue"
style/font_point: 21
style/corner_radius: 4
style/border_height: 4
@aben
aben / Solarized_Rock.yaml
Last active July 30, 2017 00:20
Solarized scheme for squirrel
solarized_rock:
name: "曬經石/Solarized Rock"
author: "Aben <tntaben@gmail.com>, based on Ethan Schoonover's Solarized color scheme"
corner_radius: 7 #圓角
border_height: 0
border_width: 0
back_color: 0x362b00 #背景色
candidate_text_color: 0x969483 #候選字顏色
hilited_candidate_back_color: 0x8236d3 #高亮候選字背景色
hilited_candidate_text_color: 0xffffff #高亮候選字顏色