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 -*- | |
# | |
# Kan-Ru Chen <[email protected]> | |
# License: GPLv3 | |
# | |
''' | |
On Screen Display pluign of WeeChat | |
''' | |
from os import popen | |
import weechat as w |
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 IS A PROOF OF CONCEPT. This has been "released" in case someone | |
;;; actually wants to develop it into a usable tool. Don't even think | |
;;; about using this version for any sort of production use. | |
;;; Author: Juho Snellman | |
;;; http://jsnell.iki.fi/blog/archive/2005-07-06.html | |
(defparameter *retain* (make-hash-table :test 'eq)) | |
(defparameter *ignore* (make-hash-table :test 'eq)) | |
(defparameter *classes* nil) |
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
diff --git a/lisp/org.el b/lisp/org.el | |
index abafde8..e1d1caa 100644 | |
--- a/lisp/org.el | |
+++ b/lisp/org.el | |
@@ -20745,7 +20745,9 @@ depending on context." | |
(not (y-or-n-p "Kill hidden subtree along with headline? "))) | |
(error "C-k aborted - would kill hidden subtree"))) | |
(call-interactively | |
- (if visual-line-mode 'kill-visual-line 'kill-line))) | |
+ (if (and (boundp 'visual-line-mode) |
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
#compdef hg_cmd_qqueue | |
declare -A opt_args | |
_hg_queues() { | |
typeset -a queues | |
queues=(${(f)"$(_hg_cmd qqueue --quiet)"}) | |
(( $#queues )) && _describe -t hg-queues 'queues' queues | |
} | |
_arguments -s -w \ |
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 | |
# This Source Code Form is subject to the terms of the Mozilla Public | |
# License, v. 2.0. If a copy of the MPL was not distributed with this file, | |
# You can obtain one at http://mozilla.org/MPL/2.0/. | |
# | |
# This program uses id-utils[1] output as a hint for grep to quickly | |
# find the target term. Thus to use this program you have to create | |
# the ID database first. | |
# |
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 | |
# Batch OCR pdf files to text files | |
# | |
# Copyright (C) 2012 Kan-Ru Chen <[email protected]> | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# |
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
const repl = "JS> "; | |
(function Repl() { | |
let output; | |
let reader = { | |
onInputStreamReady : function(input) { | |
var sin = Cc['@mozilla.org/scriptableinputstream;1'] | |
.createInstance(Ci.nsIScriptableInputStream); | |
sin.init(input); | |
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
LOCAL_PATH:= $(call my-dir) | |
include $(CLEAR_VARS) | |
LOCAL_SRC_FILES:= \ | |
gps_test.cpp | |
LOCAL_SHARED_LIBRARIES := \ | |
libcutils libhardware | |
LOCAL_MODULE:= test-gps |
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
#karma{color:rgba(0,0,0,0);background:url(http://omploader.org/vM2hoeQ/karma_hack.png) no-repeat;} |
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
--- flint_database.cc 2009-12-08 13:34:24.790284881 +0800 | |
+++ flint_database.cc 2009-12-10 14:22:14.493653956 +0800 | |
@@ -1188,7 +1188,7 @@ | |
termlist.next(); | |
while (!termlist.at_end()) { | |
- string tname = termlist.get_termname(); | |
+ string tname = termlist.get_termname(); | |
position_table.delete_positionlist(did, tname); | |
termcount wdf = termlist.get_wdf(); |