html5テンプレート

<!DOCTYPE html>
<html lang="jp">
    <head>
        <title></title>

        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="keywords" content="">
        <meta name="description" content="">

        <meta name="twitter:card" content="" />
        <meta name="twitter:site" content="" />
        <meta property="og:title" content="" />
        <meta property="og:type" content="" />
        <meta property="og:url" content="" />
        <meta property="og:image" content="" />
        <meta property="og:description" content="" />
        <meta property="og:site_name" content="" />
        <meta property="fb:admins" content="" />
        <meta property="og:site_name" content="" />
        <meta property="og:description" content="" />

        <!--[if lt IE 9]><a href="http://html5shiv.googlecode.com/svn/trunk/html5.js">http://html5shiv.googlecode.com/svn/trunk/html5.js</a><![endif]-->
        <link rel="shortcut icon" href="favicon.ico">
        <link rel="stylesheet" href="css/style.css">
    </head>
    </head>
    <body>

    </body>
</html>

tmux cheat sheet

概要

自分用tmuxのチートシート

GitHub

dotfiles/.tmux.conf at master · y-ohgi/dotfiles

Prefix

C-t
emacsのキーバインドと被らないものへ設定。 C-b はunbind

ペイン/ウィンドウ

ペインとウィンドウはコマンドを開始したペインのパスを継承させている

command description
1 現在のペイン最大化
2 ウィンドウを横に分割
3 ウィンドウを縦に分割
0 現在のペインを削除
c 新規ウィンドウを作成
C-t 次のウィンドウへ移動
C-k ペインのバッファ削除。terminalの ⌘-k
:resize-pane ペインのリサイズ。右へ50cell拡大であれば :resize-pane -R 50
&gt; 現在のペインを右へ10cell拡大
&lt; 現在のペインを左へ10cell拡大
{ 現在のペインを一つ後ろへ移動
} 現在のペインを一つ前へ移動

セッション

command description
$ tmux セッションの開始
d セッションのデタッチ
$ tmux a セッションの再開
$ tmux a -t セッション名を指定して再開
$ tmux ls セッション一覧
:kill-session セッションの削除

コピーモード

$ brew install rettach-to-user-namespace でインストールする必要有り

command description
y or C-[ コピーモードの開始
C-space 範囲選択開始
M-w コピーの実行
C-g コピーモードから抜ける

参考

【Java】リフレクション周り

型を扱う

呼び出し先メソッド

public Orm find(int id){}

失敗例:Integerを引き数にとる

Class<?> type = Class.forName("java.lang.Integer");
Class<?> clazz = Class.forName("orm.EmployeeOrm");
Method method = clazz.getDeclaredMethod("find", type);

method.invoke(clazz.newInstance(), 1);

成功例:intを用意して引き数に取る

Class<?> type = int.class;
Class<?> clazz = Class.forName("orm.EmployeeOrm");
Method method = clazz.getDeclaredMethod("find", type);

method.invoke(clazz.newInstance(), 1);