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.cpp
Created February 29, 2012 00:25
まとりっくす3
#include <Sprite.h>
#include <Matrix.h>
#include <TimerOne.h>
Matrix mtx = Martix(10, 12, 11);
Sprite tsuku = Sprite(
8, 7,
B01001000,
B01101110,
@y-yu
y-yu / kana-rule.conf
Created May 15, 2012 06:43
kana-rule
a,あ,ア,ア
bb,っ,ッ,ッ,b
ba,ば,バ,バ
bi,び,ビ,ビ
bu,ぶ,ブ,ブ
be,べ,ベ,ベ
bo,ぼ,ボ,ボ
# DvorakJP
# コンビネーションキー
@y-yu
y-yu / mozibake.js
Created June 7, 2012 02:17
文字化け
var $ = function ( selector, context ) {
context = context || document;
return context.querySelector(selector);
};
var enc = {
s : "Shift_JIS",
e : "EUC-JP",
u : "UTF-8",
i : "ISO-2022-JP"
}[location.hash.substr(1)];
@y-yu
y-yu / kadai.sql
Created June 13, 2012 17:47
access
select 氏名, 住所
from 従業員
where 部門番号=1
select 部門名
from 部門
where exists
(select 部門番号
from 従業員
where 氏名='山田一郎')
@y-yu
y-yu / rotate.tex
Created June 23, 2012 10:51
引数の文字列を文字ごとに分割して、乱数で生成した角度の分傾けて表示する
\usepackage[dvipdfmx]{graphicx}
\usepackage[first=0, last=360]{lcg}
\makeatletter
\def\rotate#1{%
\def\str{#1@}%
\expandafter\@rotate\str}
\def\makerandrotatebox#1{%
\makeatletter
\newcount\barsNow
\def\underbar#1{%
\barsNow =#1\relax%
\expandafter\@underbar}
\def\@underbar{%
\advance\barsNow -1%
@y-yu
y-yu / vimiumrc
Created July 27, 2012 15:38
Vimium key map
# 参考:http://ydal.de/vimium-mapping-for-dvorak-layouts/
unmapAll
map r reload
map x removeTab
map u restoreTab
map t scrollDown
map n scrollUp
map h scrollLeft
@y-yu
y-yu / inherit.md
Created August 9, 2012 06:57
JavaScriptの継承について

JavaScriptの継承について

全然理解出来てなかったので調べてみた。

経緯

function f () {
	// Class
}
@y-yu
y-yu / test.md
Created August 11, 2012 07:06
てすと

<p>たぐ

そもそもGitHubでブログとか抜かし始めたのは、この拡張マークダウン記法があったからだと思う。 とりあえずソースコードを綺麗に貼れるだけでポイントが高いし、 厄介な手続きを踏んで、アカウントを取得する手間もかからんので楽だろうと思った。 試しにソースを載せると非常に美しく表示される。

@y-yu
y-yu / OMakefile
Created September 5, 2012 12:41
OMakefile
LATEX = platex --interaction=nonstopmode --kanji=utf8
DVIPDFM = dvipdfmx
DVIPSFLAGS = -t jisb5 -P pdf
DVIPDFMFLAGS = -p jisb5
TEXDEPS = word.cls
word.cls : ../../texfiles/word.cls
cp ../../texfiles/word.cls word.cls