Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
GH_TOKEN=$1
UPLOAD_FILE=$2
GH_USER_NAME=$3
GH_REPO_NAME=$4
VERSION=$5
if [ $# -ne 5 ]; then
echo "Invalid arguments."
@deton
deton / tsf-vim-vac2012.markdown
Last active April 20, 2024 03:40
Vi風操作をWindows用IMEとして実装
@atty303
atty303 / gist:7261749
Last active December 27, 2015 03:48
iTerm2 + AquaSKK

iTerm2 + AquaSKK

AquaSKK を素の iTerm2 で使うと、IM 状態を変更するための "C-j" や "l" がそのまま入力されてしまって不便という問題があり、 以下のあたりでその問題を直すパッチを作ってくださった方がおりました。

僕も 1.0.0 が出たころに上記パッチを当てた iTerm2 をずっと使ってました。

diff -r 92c9748e0ccb src/config.h.in
--- a/src/config.h.in Sun Oct 06 17:46:56 2013 +0200
+++ b/src/config.h.in Sun Oct 13 23:11:37 2013 +0200
@@ -442,3 +442,6 @@
/* Define if you want Cygwin to use the WIN32 clipboard, not compatible with X11*/
#undef FEAT_CYGWIN_WIN32_CLIPBOARD
+
+/* Define if we have AvailabilityMacros.h on Mac OS X */
+#undef HAVE_AVAILABILITYMACROS_H
@ttdoda
ttdoda / slrm-test3.txt
Created July 1, 2013 17:08
左マージンの動作テスト。VT525はかなり意外な動作をする。 この挙動を再現している端末エミュレータはおそらく無い。
7[?69h812345678901234567890
#aaa
%**************************************************************
bbb
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@7[?69l8
VT525's result as follows.
12345678901234567890
# aaa
@kohyama
kohyama / puyo.clj
Last active October 19, 2017 06:08
ぷよぷよ連鎖 in Clojure
;;; Copyright (c) 2013 Yoshinori Kohyama. Distributed under the BSD 3-Clause License.
(ns puyo
(:require [clojure.test :refer (with-test run-tests are)]
[clojure.set :refer (union)]
[clojure.string :as string]))
(with-test
(defn- fall-one [b s]
(->> (reverse b)
(apply map vector)
@ttdoda
ttdoda / slrm-test1.txt
Created June 17, 2013 17:24
DECSLRMで左右マージンを設定した時のIRMやICH等の動作テスト用テキスト。端末の横幅を80桁tにしてcatで表示する。 IRM-OK等の行がVT525での出力結果。
7[?69h8IRM:01234567890#####abcdefghTESTTEST01234567890TEST7[?69l8
IRM-OK: 01234TEST567890 ##### 01234TEST56 abcTESTde
7[?69h8ICH:01234567890#####abcdefgh[4@TEST[4@TEST01234567890[4@TEST7[?69l8
ICH-OK: 01234TEST90 ##### 01234TEST56 abcTESTh
7[?69h8DCH:01234567890#####abcdefgh012345678907[?69l8
DCH-OK: 01234567890 ##### 0123490 abcdefgh
ECH:#######################################################################7[?69h87[?69l8
ECH-OK: ##### ########################################### ## ###
@ttdoda
ttdoda / screen.c.diff
Last active December 18, 2015 04:39
vsplit時、IL/DL/NLの実行をスクロールリージョン内で行うようにする。
--- screen.c.orig 2013-06-15 17:29:09.000000000 +0900
+++ screen.c 2013-06-15 17:45:44.000000000 +0900
@@ -9020,6 +9020,7 @@
int j;
unsigned temp;
int cursor_row;
+ int cursor_col = 0;
int type;
int result_empty;
int can_ce = can_clear(T_CE);
@ttdoda
ttdoda / cursor.c.diff
Created June 6, 2013 10:53
xtermで左マージン上にカーソルがある時にCRが正しく働かない現象の修正。
--- cursor.c.orig 2012-06-04 04:57:47.000000000 +0900
+++ cursor.c 2013-06-06 19:35:14.000000000 +0900
@@ -265,19 +265,19 @@
void
CarriageReturn(XtermWidget xw)
{
TScreen *screen = TScreenOf(xw);
int left = ScrnLeftMargin(xw);
int col;
brew install cmigemo
mkdir -p ~/.vim/bundle/manual/migemo/plugin
cd ~/.vim/bundle/manual/migemo/plugin
curl -L -O https://raw.github.com/koron/cmigemo/master/tools/migemo.vim
vi ~/.vimrc
NeoBundle 'migemo', {'type' : 'nosync', 'base' : '~/.vim/bundle/manual'}