Skip to content

Instantly share code, notes, and snippets.

View y-ishida's full-sized avatar

Yusuke Ishida y-ishida

  • Japan
View GitHub Profile
@y-ishida
y-ishida / README.md
Last active April 7, 2016 04:57
.po や .rst を変換して .md へコピペする際の変換スクリプト類

使い方

:so conv.vim

@y-ishida
y-ishida / delegate.vala
Created December 21, 2015 00:29
デリゲートの限界は・・・?
delegate void HogeFunc();
class Hoge {
HogeFunc func;
public Hoge(HogeFunc func) {
this.func = () => { func(); };
}
@y-ishida
y-ishida / Makefile
Last active August 29, 2015 14:01
[vala] Example to sharing private classes in a static library.
all: test.vala liba.a
valac --save-temps -g -X -w -X -L. -X -la test.vala a.vapi
liba.a: a1.o a2.o
ar rcsv liba.a a1.o a2.o
a1.o a2.o: a1.vala a2.vala
valac --save-temps -H public.h --internal-header=internal.h --internal-vapi=a.vapi \
-g -c -X -w -c a1.vala a2.vala