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/ruby | |
# -*- coding: utf-8 -*- | |
# @date: 2012-11-20 | |
# @author: Frank_Xu franky.xhl[at]gmail.com I'm a Ruby Newbie~ | |
# 变量设定 | |
# qn = question number count | |
qn = 13 | |
# filename | |
filename = "rslt.txt" |
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
(setq mac-option-key-is-command t) | |
(setq mac-option-modifier 'super) | |
(setq mac-command-key-is-meta t) | |
(setq mac-command-modifier 'meta) |
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
;;=========================================================================== | |
;;sr-speedbar-mode | |
;;=========================================================================== | |
(require 'sr-speedbar) | |
;;默认显示所有文件 | |
(custom-set-variables | |
'(speedbar-show-unknown-files t) | |
) | |
;;sr-speedbar-right-side 把speedbar放在左侧位置 | |
;;sr-speedbar-skip-other-window-p 多窗口切换时跳过speedbar窗口 |
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
# -*- coding: utf-8 -*- | |
# name: def | |
# contributor: Orestis Markou | |
# contributor: Yasser González Fernández <yglez@uh.cu> | |
# key: def | |
# -- | |
def ${1:name}($2): | |
"""$3 | |
${2:$ | |
(let* |
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
// This File is imported last, and will override other styles in the cascade | |
// Add styles here to make changes without digging in too much | |
html{ | |
background: url('/images/bg.png') repeat center top; | |
} | |
body > header{ | |
background-color: transparent; | |
} |
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
(defun indent-hint-mode (&optional l lst) | |
(interactive) | |
(let* ((c '(indent-hint-current-column)) | |
(lst (or lst '(("^[ \t]*\\([^ \t]\\)")))) | |
(lst (if l lst (reverse lst)))) | |
(indent-hint-init l) | |
(dolist (x lst) | |
(indent-hint (car x) c (cadr x))))) | |
;;根据上面的mode改进的希望的tab mode | |
(defun indent-hint-tab-mode (&optional l lst) |
NewerOlder