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
// createshortcut.js -- ++pentadactyl | |
// @Author: eric.zou (frederick.zou@gmail.com) | |
// @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
\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
\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
# 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
"use strict"; | |
XML.ignoreWhitespace = false; | |
XML.prettyPrinting = false; | |
var MESSAGES = { | |
"en-US": [], | |
"zh-CN": [] | |
}; | |
var STATE_READY = 0; |
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
js <<EOF | |
function removeTabs(count, arg) { | |
let end_pattern = /^[0-9]+$|^(\^|\$)$/; | |
if (!end_pattern.test(arg)) { | |
dactyl.echo("Invalid Range", commandline.FORCE_SINGLELINE) | |
return false; | |
} | |
let end = 0; | |
if (arg == "$") |
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
// popup.js -- js | |
// @Author: eric.zou (frederick.zou@gmail.com) | |
// @License: GPL (see http://www.gnu.org/licenses/gpl.txt) | |
// @Created: Sun 29 May 2011 07:28:41 PM CST | |
// @Last Change: Sun 29 May 2011 07:31:43 PM CST | |
// @Revision: 4 | |
// @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
// ==UserScript== | |
// @name GoogleKingKong | |
// @namespace http://userstyles.org | |
// @description 改善 Google 的搜索结果界面,提高阅读效率 | |
// @version 5.6 | |
// @author SUCCESS | |
// @include http://www.google.*/search* | |
// @include http://www.google.*/*#* | |
// ==/UserScript== | |
/* 更新记录 *********************************************************************** |
NewerOlder