起動方法
|
1 |
$ subl README.TXT |
|
1 |
$ subl tmp/ |
リンク作成方法
|
1 |
$ sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin |
|
1 |
$ subl README.TXT |
|
1 |
$ subl tmp/ |
|
1 |
$ sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin |
|
1 |
$ gem update --system |
|
1 |
$ gem install bundle |
|
1 |
$ gem update bundle |
|
1 |
$ git mv foo.c bar.c |
|
1 |
$ git mv -f Readme.txt README.TXT |
|
1 2 3 |
$ cd app/src/main # AndroidManifest.xmlのあるディレクトリ $ $(NDKTOOL)/ndk-build |
ndk-buildのインストール場所の例 : ~/ndk/android-ndk-r9d/ndk-build
|
1 |
COUNTIFS(検索範囲1, 検索条件1, 検索範囲2, 検索条件2, .., 検索範囲n, 検索条件n) |
範囲A1:A100の中で「セルE1以上かつセルE2以下」のセルの数をカウントする
|
1 |
COUNTIFS(A1:A100, ">="&E1, A1:A100, "<="&E2) |
xddはファイルや標準入力からヘキサダンプを生成するだけでなく、ヘキサダンプからオリジナルのバイナリー形式に変換することができる。
バイナリファイルからC言語形式の配列コードを生成する。
|
1 2 3 4 5 6 7 8 9 10 11 12 |
$ xxd -i favicon.ico unsigned char favicon_ico[] = { 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x10, 0x10, 0x00, 0x00, 0x01, 0x00, 0x08, 0x00, 0x68, 0x05, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x01, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 中略 */ 0xff, 0xff, 0xc0, 0x03, 0xff, 0xff, 0xe6, 0x87, 0xff, 0xff, 0xfe, 0xff, 0xff, 0xff }; unsigned int favicon_ico_len = 1406; |
| コマンド | 意味 |
|---|---|
| ndk-build | ビルド |
| ndk-build clean | クリーン (*.soを削除) |
| ndk-build NDK_DEBUG=1 | デバッグ可能なバイナリ生成 0:無効(default) / 1:有効 |
| ndk-build V=1 | verboseモード |
| ndk-build NDK_LOG=1 | NDKのログ表示 |
Android StudioでShift-JISのソースコードが文字化けするのを解消する
Android Studio => Preferences…

Android Studio を再起動する。
|
1 2 3 4 5 6 |
<?xml version="1.0" encoding="UTF-8"?> <project version="4"> <component name="Encoding"> <file url="PROJECT" charset="x-SJIS_0213" /> </component> </project> |
|
1 |
$ git clone git://github.com/schacon/myproject.git |
|
1 |
$ cd myproject |
|
1 |
$ git submodule init |
|
1 |
$ git submodule update |
|
1 |
$ git submodule update --init |
|
1 |
$ git submodule update --init --recursive |