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:utf8 | |
import redis | |
import logging | |
import click | |
from itertools import izip_longest | |
# hosts = ('172.16.14.2', '172.16.14.4', '172.16.14.7', '172.16.14.16') |
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
set keymap vi | |
set editing-mode vi | |
set completion-ignore-case on | |
"\eOC": forward-word | |
"\eOD": backward-word | |
"": clear-screen |
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
bind -v | |
bind ^l ed-clear-screen |
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
magic-enter () { | |
if [[ -z $BUFFER ]]; then | |
if git rev-parse --is-inside-work-tree > /dev/null 2>&1; then | |
echo | |
git diff --minimal | |
echo | |
fi | |
fi | |
zle accept-line | |
} |
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
\usepackage{fontspec} | |
\usepackage{xeCJK} | |
\setCJKmainfont {微软雅黑} |
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
\documentclass{article} | |
\usepackage{CJK} | |
\begin{document} | |
\begin{CJK}{UTF8}{gbsn} | |
你好 | |
You can mix latin letters and chinese. | |
\end{CJK} |
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
# use at your own risk | |
sed -i 's#url(//#url(http://#g' **/*.html | |
sed -i 's#="//#="http://#g' **/*.html |
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
if (!exists('g:firefox_execute') || empty(g:firefox_execute)) | |
let g:firefox_execute = 'firefox' | |
endif | |
fun! DactylComplete(A, L, P) "{{{ | |
if (!exists('g:DactylCompleteLoaded')) | |
let l:tmp = tempname() | |
let l:getListCommands = 'js let hives = modules.commands.allHives;' | |
\ .'var names = [];' | |
\ .'Array.forEach(hives, function(hive) {' | |
\ .' let lists = hive._list;' |
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
// createshortcut.js -- ++pentadactyl | |
// @Author: eric.zou ([email protected]) | |
// @License: GPL (see http://www.gnu.org/licenses/gpl.txt) | |
// @Created: Tue 29 Nov 2011 01:24:05 PM CST | |
// @Last Change: Tue 29 Nov 2011 02:23:36 PM CST | |
// @Revision: 41 | |
// @Description: | |
// @Usage: | |
// @TODO: | |
// @CHANGES: |
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
"use strict"; | |
XML.ignoreWhitespace = false; | |
XML.prettyPrinting = false; | |
var MESSAGES = { | |
"en-US": [], | |
"zh-CN": [] | |
}; | |
var STATE_READY = 0; |
NewerOlder