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
import socket | |
import threading | |
import sys | |
import os | |
import time | |
def Server_send_file(conn): | |
while True: | |
try: |
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
#apt-get {{{ | |
#Chinese input method | |
sudo add-apt-repository ppa:fcitx-team/nightly #ubuntu12.04 needed | |
sudo add-apt-repository ppa:lotem/rime | |
sudo apt-get update | |
sudo apt-get install fctix-rime #recommanded;config fcitx use "fcitx-configtool";uncheck "only show current language" then search rime | |
#allow Conntected by ssh | |
sudo apt-get install openssh-server |
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
#hust ubuntu13.10 | |
deb http://mirrors.hust.edu.cn/ubuntu/ saucy main restricted universe multiverse | |
deb http://mirrors.hust.edu.cn/ubuntu/ saucy-security main restricted universe multiverse | |
deb http://mirrors.hust.edu.cn/ubuntu/ saucy-updates main restricted universe multiverse | |
deb http://mirrors.hust.edu.cn/ubuntu/ saucy-proposed main restricted universe multiverse | |
deb http://mirrors.hust.edu.cn/ubuntu/ saucy-backports main restricted universe multiverse | |
deb-src http://mirrors.hust.edu.cn/ubuntu/ saucy main restricted universe multiverse | |
deb-src http://mirrors.hust.edu.cn/ubuntu/ saucy-security main restricted universe multiverse | |
deb-src http://mirrors.hust.edu.cn/ubuntu/ saucy-updates main restricted universe multiverse | |
deb-src http://mirrors.hust.edu.cn/ubuntu/ saucy-proposed main restricted universe multiverse |
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
###中文输入法下也使用英文标点2013/8/14 yxj | |
###有些用戶習慣在中文裏使用ASCII標點,那麼與其一個一個覆寫,不如 整套都換掉 。 | |
###取得這份設定檔—— Rime 別樣設定,使用西文標點(一个gist:https://gist.github.com/lotem/2334409) 在用戶資料夾保存爲 alternative.yaml ; | |
###再將輸入方案中的「導入 default 設定」通過打 patch 替換爲「導入 alternative 設定」 | |
###刚刚遇到一个问题,因为教程里面说需要这前两行,所以就直接粘贴了,但是发现模糊音失效了,找到原因是[只能有一个patch:,因为上面已经有了,所以就下面就不要了,注意缩进,两个英文空格] | |
###又加入了一行代码['key_binder/import_preset': alternative]作用是让[ ]可以翻页,如果一开始就用 [ 上翻页的会连高亮的字加[都一起上屏「比如你好[ 」就会这样了,哈哈 | |
###patch: | |
##'punctuator/import_preset': alternative | |
##'key_binder/import_preset': alternative | |
###### |
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
# default.custom.yaml | |
# | |
# 修改中西文切换按键 | |
# 佛振配製 :-) | |
# Modify by yxjxx | |
# | |
# | |
# 切換方式代碼: | |
# noop:不切換(Control鍵的默認行爲) | |
# inline_ascii:當已輸入編碼時,不上屏、內聯式編輯西文,回車上屏後復位爲中文模式(左Shift默認行爲) |
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
# luna_pinyin_simp.custom.yaml | |
# | |
# 【朙月拼音】模糊音定製模板 | |
# 佛振配製 :-) | |
# Modify by yxjxx | |
# | |
# 位置: | |
# ~/.config/ibus/rime (Linux) | |
# ~/Library/Rime (Mac OS) | |
# %APPDATA%\Rime (Windows) |
NewerOlder