Skip to content

Instantly share code, notes, and snippets.

@uobikiemukot
uobikiemukot / 16palette.sixel
Last active August 29, 2015 14:02
show default 16 color palette of sixel
Pq"1;1;128;36
#0!16~#1!16~#2!16~#3!16~#4!16~#5!16~#6!16~#7!16~$-
#0!16~#1!16~#2!16~#3!16~#4!16~#5!16~#6!16~#7!16~$-
#0!16~#1!16~#2!16~#3!16~#4!16~#5!16~#6!16~#7!16~$-
#8!16~#9!16~#10!16~#11!16~#12!16~#13!16~#14!16~#15!16~$-
#8!16~#9!16~#10!16~#11!16~#12!16~#13!16~#14!16~#15!16~$-
#8!16~#9!16~#10!16~#11!16~#12!16~#13!16~#14!16~#15!16~$-
\
@ttdoda
ttdoda / gist:c9db22ed1668e2e29a76
Last active August 29, 2015 14:03
Application Escape Key Mode改良試験用設定
let &t_SI .= "\e[?14004h"
let &t_EI .= "\e[?14004l"
inoremap <special> <Esc>[=27%~ <nop>
noremap <special> <Esc>[=27%~ <nop>
@uobikiemukot
uobikiemukot / w3m-sixel.patch
Last active August 29, 2015 14:06
sixel inline image patch for w3m-0.5.3
--- terms.c.orig 2014-09-23 21:36:24.992432936 +0900
+++ terms.c 2014-09-23 21:51:16.598842197 +0900
@@ -463,6 +463,80 @@
#define MOVE(line,column) writestr(tgoto(T_cm,column,line));
+int output_sixel_fp(char *file, int x, int y)
+{
+ int length;
+ long size, rsize, count = 0;
@uobikiemukot
uobikiemukot / libsixel_normalize_depth.patch
Created October 6, 2014 11:49
support image 1/2 byte pel pixel image(grayscale (+ alpha)) and 4 bytes per pixel image (rgb + alpha)
diff --git a/src/dither.c b/src/dither.c
index 4f777e2..5ac4eeb 100644
--- a/src/dither.c
+++ b/src/dither.c
@@ -218,24 +218,64 @@ sixel_dither_get(int builtin_dither)
}
+void
+sixel_normalize_depth(unsigned char *dst, unsigned char *src, int width, int height, int depth)
@mattn
mattn / gist:78477753124fb4eb84a3
Last active August 29, 2015 14:11
Patch to add ambiwidth=fulldouble to display N (neutral unicode characters) as double
diff -r 8cae3b61ce9e runtime/doc/options.txt
--- a/runtime/doc/options.txt Mon Dec 08 04:16:45 2014 +0100
+++ b/runtime/doc/options.txt Wed Dec 10 14:28:43 2014 +0900
@@ -685,6 +685,7 @@
"single": Use the same width as characters in US-ASCII. This is
expected by most users.
"double": Use twice the width of ASCII characters.
+ "fulldouble": Use twice the width for neutral characters.
*E834* *E835*
The value "double" cannot be used if 'listchars' or 'fillchars'
@ttdoda
ttdoda / w3m-sgr-style-menu.diff
Last active August 29, 2015 14:26
SGR 1006 mouse reporting for w3m's menu
--- menu.c.orig 2011-01-04 18:22:23.000000000 +0900
+++ menu.c 2015-08-05 17:37:19.035511000 +0900
@@ -57,6 +57,7 @@
static int mClose(char c);
static int mSusp(char c);
static int mMouse(char c);
+static int mSgrMouse(char c);
static int mSrchF(char c);
static int mSrchB(char c);
static int mSrchN(char c);
@henry0312
henry0312 / mingw.sh
Created November 27, 2011 06:19
Build MinGW Cross Compiler on Mac OS X Lion
#!/bin/sh
# 初期設定
WORK=$HOME/Builds/GCC
PREFIX=$HOME/mingw
export PATH="$HOME/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin"
# ソースコードのダウンロード
if [ ! -d $WORK/src ] ; then
mkdir src
@k-takata
k-takata / symlinkfix-update.diff
Created August 23, 2012 13:02
symlinkfix-update.diff
diff --git a/src/fileio.c b/src/fileio.c
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -3778,12 +3778,12 @@
}
}
-# ifdef UNIX
/*
* Break symlinks and/or hardlinks if we've been asked to.
@yoshikaw
yoshikaw / gist:3461979
Created August 25, 2012 07:13
zsh 5.0のCOMBINING_CHARSオプション
seravee /Volumes/Data/tmp/hoge [0] 67471 % ll
total 0
drwxrwxrwx@ 1 yoshikaw staff 264 May 20 15:45:03 2012 キタ━━━━(゚∀゚)━━━━ッ!!/
drwxrwxrwx@ 1 yoshikaw staff 264 May 20 14:23:04 2012 日本語でおk/
drwxrwxrwx@ 1 yoshikaw staff 264 May 19 23:32:36 2012 あばばばば/
seravee /Volumes/Data/tmp/hoge [0] 67472 % ls あは<3099>は<3099>は<3099>は<3099>/
Completing directories
あばばばば/ 日本語でおk/ キタ━━━━\(゚∀゚\)━━━━ッ\!\!/
seravee /Volumes/Data/tmp/hoge [0] 67472 % setopt combiningchars
@zonuexe
zonuexe / README.md
Created September 7, 2012 00:19
el-getでnavi2chを管理する

el-get で navi2ch を管理する

el-get ってなぁに?

最近流行ってるらしい Emacs のパッケージ管理システムだよ。 いろんなところからパッケージを取り込めるからとにかく楽だよ!

navi2ch ってなぁに?

ggrks