Skip to content

Instantly share code, notes, and snippets.

# -*- coding: UTF-8 -*-
import wx
import sys
import json
from wx.core import TreeItemIcon_Expanded, Treebook
class TreeVisitor:
#!/bin/bash
#
# template script for generating CentOS container for LXC
#
#
# lxc: linux Container library
# Authors:
@ushiushix
ushiushix / gist:5057337
Created February 28, 2013 14:57
Add img element at the icons for line comments. Enable screen readers recognize the icons.
(function() {
var elements = document.getElementsByTagName( '*' );
for ( var i = 0, il = elements.length; i < il; i++ ) {
var element = elements[i];
if ( /\bmini-icon-add-comment\b/.test( element.className ) ) {
var img = document.createElement("img");
img.setAttribute("alt", "*");
element.appendChild(img);
}
}
@ushiushix
ushiushix / emacs.jss
Created July 1, 2012 12:41
JAWS Script to workaround Emacs 24.1/gnupack and TSF issue
include "hjconst.jsh"
int Function IMEStartCompositionEvent()
return 0
EndFunction
int function isTsfApplication()
return TRUE
EndFunction
@ushiushix
ushiushix / private.xml
Last active September 27, 2015 20:28
KeyRemap4MacBook configuration
<?xml version="1.0"?>
<root>
<item>
<name>EISUU to INSERT(Only in VMware, Parallels, RDC)</name>
<identifier>private.jis_eisuu2insert</identifier>
<only>VIRTUALMACHINE, REMOTEDESKTOPCONNECTION</only>
<autogen>__KeyToKey__ KeyCode::JIS_EISUU, KeyCode::PC_INSERT</autogen>
</item>
<item>
<name>FN+Command_R to Option_R</name>
@ushiushix
ushiushix / mew.rb
Created September 29, 2011 12:56
Homebrew formula for Mew 6.3
# Note:
# To install git-head of mew:
# brew install --ignore-dependencies --HEAD mew
# If you omit --ignore-dependencies, brew will try to install Emacs head as well.
require 'formula'
class Mew < Formula
url 'http://www.mew.org/Release/mew-6.3.tar.gz'
homepage 'http://www.mew.org'
md5 'a0ca3b478dbad44d5a7e09083e323ccc'