Skip to content

Instantly share code, notes, and snippets.

View y-yu's full-sized avatar

YOSHIMURA Yuu y-yu

View GitHub Profile
@y-yu
y-yu / 3.ml
Created November 19, 2012 11:47
3.ml
type 'a tree = Lf | Br of 'a * 'a tree * 'a tree;;
let rec height t =
match t with
Lf -> 1
| Br (_, t1, t2) ->
if (height t1) > (height t2) then
1 + (height t1)
else
1 + (height t2);;
@y-yu
y-yu / 2.ml
Created November 19, 2012 11:08
2.ml
let diff l1 l2 =
List.filter (fun e -> List.fold_left (fun x y -> y != e && x) true l2) l1;;
@y-yu
y-yu / gist:4063611
Created November 13, 2012 02:31
echo
$ echo $PATH | tr : '\n' | sort
/bin
/home/ugrad/11/s1111411/perl5/perlbrew/bin
/home/ugrad/11/s1111411/perl5/perlbrew/perls/perl-5.14.1/bin
/opt/local/bin
/sbin
/usr/X11/bin
/usr/bin
/usr/local/bin
/usr/local3/bin
@y-yu
y-yu / readline.md
Created November 13, 2012 02:15
readline
@y-yu
y-yu / gosh.md
Created November 13, 2012 02:07
gosh
@y-yu
y-yu / rlwrap.md
Created November 13, 2012 02:02
rlwrap.md
@y-yu
y-yu / listing.tex
Created November 4, 2012 12:28
listing settings
\usepackage{listings}
\lstset{
language=C,
basicstyle=\footnotesize\tt,
keywordstyle=\footnotesize\sl,
breaklines=true,
numbers=left,
frame=trbl,
showstringspaces=false,
@y-yu
y-yu / gist:3978934
Created October 30, 2012 08:18
local.map
rml H HiraMinPro-W3.otf
rmlv V HiraMinPro-W3.otf
gbm H HiraKakuPro-W3.otf
gbmv V HiraKakuPro-W3.otf
%%% OTF package
hminr-h H HiraMinPro-W3.otf
hminr-v V HiraMinPro-W3.otf
otf-ujmr-h UniJIS-UTF16-H HiraMinPro-W3.otf
@y-yu
y-yu / convert_error
Created October 22, 2012 13:40
convert error
$ convert -density 10000 mand.pdf mand.png
Error: /ioerror in --run--
Operand stack:
--dict:6/15(L)-- 59.4618 169.32
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1846 1 3 %oparray_pop 1845 1 3 %oparray_pop 1829 1 3 %oparray_pop --nostringval-- --nostringval-- 2 1 1 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- %array_continue --nostringval-- false 1 %stopped_push --nostringval-- %loop_continue --nostringval-- --nostringval--
Dictionary stack:
--dict:1155/1684(ro)(G)-- --dict:1/20(G)-- --dict:75/200(L)-- --dict:75/200(L)-- --dict:106/127(ro)(G)-- --dict:285/300(ro)(G)-- --dict:22/25(L)-- --dict:4/6(L)-- --dict:21/40(L)-- --dict:5/5(L)-- --dict:1/1(ro)(G)-- --dict:5/5(L)--
Current allocation mode is local
Las
@y-yu
y-yu / chukan.md
Created September 21, 2012 07:02

木構造を持つデータ構造によって記述出来る、プレゼンテーションアプリの開発

情報科学類 二年 吉村 優

https://gist.github.com/3760110

概要

プレゼンテーションを作るアプリケーションは、 MSの製品などいくつあるが、木構造をスライドとして持つものは恐らくない。