Skip to content

Instantly share code, notes, and snippets.

@hyuki0000
hyuki0000 / private.xml
Created July 10, 2013 15:08
private.xml for KeyRemap4MacBook to remap ESC -> ESC + EISUU and ^[ to ^[ EISUU. This is to make Kotoeri disable in vim's normal mode. Based on http://r7kamura.hatenablog.com/entry/20110217/1297910068
<?xml version="1.0"?>
<root>
<list>
<item>
<name>LeaveInsMode with EISUU(Terminal)</name>
<identifier>private.app_terminal_esc_with_eisuu</identifier>
<only>TERMINAL</only>
<autogen>--KeyToKey-- KeyCode::ESCAPE, KeyCode::ESCAPE, KeyCode::JIS_EISUU</autogen>
<autogen>--KeyToKey-- KeyCode::JIS_BRACKET_LEFT, VK_CONTROL, KeyCode::JIS_BRACKET_LEFT, VK_CONTROL, KeyCode::JIS_EISUU</autogen>
</item>
@hyuki0000
hyuki0000 / 000note1.tex
Last active December 18, 2015 18:29
TeXLive 2013 にして書籍をpLaTeXかけようとしたらこんなエラーになってしまった。 - Windows 7 - インストールはデフォルトのまま install-tl.bat を動かした。 - 以前は TeXLive 2012 で動かしていた。その環境は現在はない。
\documentclass{jsbook}
\begin{document}
Hello!
\end{document}
@hyuki0000
hyuki0000 / ruby.pl
Created April 19, 2013 06:11
Try to find ruby-ed keywords that are not indexed from LaTeX files.
# ruby.pl
# カレントディレクトリの *.tex から、
# ruby{A}{B}とindex{A@B}とindex{A}を探し、
# indexされていないと思われるrubyを表示する。
use strict;
use warnings;
my %index;
my %ruby;
@hyuki0000
hyuki0000 / httpserver.rb
Created March 30, 2013 08:47
Tiny HTTP Server.
require 'webrick'
WEBrick::HTTPServer.new(
:DocumentRoot => '.',
:Port => 8013,
).start
@hyuki0000
hyuki0000 / 00readme.txt
Created October 9, 2009 08:36
"Coloring Pascal's Triangle" Applet. Visit http://www.hyuki.com/math/triangle/ for its live example.
javac Triangle.java
appletviewer index.html
public class Test {
public static void main(String[] args) {
System.out.println("Hello.");
}
}