This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
autoload/calendar/webapi.vim | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
diff --git autoload/calendar/webapi.vim autoload/calendar/webapi.vim | |
index 044570c..f07e134 100644 | |
--- autoload/calendar/webapi.vim | |
+++ autoload/calendar/webapi.vim | |
@@ -153,7 +153,7 @@ function! s:request(json, async, url, ...) | |
endif | |
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- cqlb30.txt.orig 2015-03-17 15:47:47.589370961 +0800 | |
+++ cqlb30.txt.rule 2015-03-17 15:50:58.849377706 +0800 | |
@@ -1,15 +1,24 @@ | |
;fcitx Version 0x03 Table file | |
+;超强二笔120309码表:http://fds8866.ys168.com/ | |
+;解开后参考erbi码表:http://fcitx.github.io/handbook/sect1-code-table.html | |
+; | |
+;1. 添加了 InvalidChar、删除了标点符号。 | |
+; 使得标点可以直接上屏。 | |
+; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# vim: set noexpandtab: | |
# digu 应该限制了经由 api 方式更新的频率(>5m),所以我无法保证每次都能正常更新。 | |
# 不要手动删除 friendfeed 最近 n 条历史记录,否则会异常并导致重复发推 | |
# 异常主要原因是前后两次获取到的 friendfeed 记录可能会不一致 | |
import json | |
import urllib | |
import urllib2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# 添加 cron 调度时,在命令前必须添加 DISPLAY=:0,否则 osd 不能正常显示,例如 | |
# | |
# # 每 5 分钟在第 15 课(616行开始)和第 16 课(707行结束)的单词中随机挑选一个显示: | |
# */5 * * * * env DISPLAY=:0 /sun/desktop/rword /sun/archive/japanese_word.txt 616 707 & | |
# | |
file=$1 # 字典文件绝对路径 | |
from=$2 # 随机输出行数范围的最小值 | |
till=$3 # 随机输出行数范围的最大值 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh - | |
# inspiration from: http://www.zsh.org/mla/users/2007/msg01187.html | |
# require a POSIX sh, on those systems where the POSIX sh is not in /bin | |
# (like Solaris), you may need to adapt the shebang line above | |
# (/usr/xpg4/bin/sh on Solaris). You also need a terminfo aware "tput", | |
# ncurses one (the default on most systems) will do. | |
# wrapper around mu, the mail indexing/searching utility for mutt. | |
# in your ~/.muttrc: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://superuser.com/questions/117051/how-do-i-save-the-scrollback-buffer-in-urxvt | |
# http://blog.plenz.com/2012-01/zsh-complete-words-from-tmux-pane.html | |
_urxvt_scrollback_buffer_words() { | |
local expl | |
local -a w | |
# depends URxvt.print-pipe configuration | |
# insure the ~/.Xresources or ~/.Xdefaults: | |
# ... | |
# URxvt.print-pipe: cat > /tmp/xxx | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export COLOR_PRIORITY="$RED" | |
export COLOR_CONTEXT="$GREEN" | |
export COLOR_PROJECT="$CYAN" | |
export COLOR_ADD_ONS="$PURPLE" | |
# Force gawk to behave posixly. Comment out if you get an error about | |
# no such option -W. | |
AWK_OPTIONS="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import httplib | |
import urllib | |
import json | |
import base64 | |
import cPickle as p | |
import sys | |
reload(sys) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# inspired from http://feedelli.org/2012/07/29/bash-command-line-pomodoro-timer.html | |
# punch-time-tracking: http://code.google.com/p/punch-time-tracking/ | |
# 每个闹钟就固定为 25 分钟,不允许任意设定时间。 | |
# 配合 Punch.py 才能记录钟的使用情况,方便统计。 | |
doing=$1 | |
limit=$((25*60*1000)) | |
step=$((5*60*1000)) | |
#limit=$((25*1000)) # 25秒测试用 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# inspired on: https://github.com/jkrehm/todotxt-cli-addons | |
# | |
# $ crontab -l | |
# */5 * * * * TZ='Asia/Shanghai' /sun/todo/opt/remind/pushover ${YOUR_TODO_FILE} ${YOUR_API_TOKEN} ${YOUR_USER_KEY} | |
# */5 * * * * TZ='Asia/Shanghai' /sun/todo/opt/remind/pushover ${ANOTHER_TODO_FILE} ${YOUR_API_TOKEN} ${YOUR_USER_KEY} | |
# | |
# 在 pushover.net 申请 App 后得到 ${YOUR_API_TOKEN} |
OlderNewer