ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl
コンソールを開く
| ・個人的なメモなので環境によってはうまく動かないかも | |
| ・Apache、php-build、phpenvはHomebrewでインストールしたやつを使用 | |
| ・Apacheのモジュールを作成して退避する | |
| ・事前に/usr/local/share/php-build/default_configure_optionsに--with-apxs2=/usr/local/sbin/apxsを追加しておく | |
| ・使い方 | |
| ~/.phpenv/libexec に配置して実行権限を付与 | |
| $ phpenv apache-install 5.3.15 でインストール |
| $ adb shell | |
| shell@android:/ $ input text hoge |
| $ bundle exec rails s -e production -d | |
| $ kill -INT <プロセス番号> |
| public class SampleFragment extends Fragment { | |
| /** Fragmentで保持しておくデータ */ | |
| private int mData; | |
| /** | |
| * Fragmentインスタンスを生成した返却. | |
| * | |
| * コンストラクタに引数を渡すのはダメ。 | |
| * Fragmentがメモリ不足で破棄され、そこから復帰する時に空のコンストラクタ呼ばれる。 |
| public class SampleFragment extends Fragment implements LoaderCallbacks<String> { | |
| private static final int LOADER_ID = 0; | |
| @Override | |
| public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { | |
| return inflater.inflate(R.layout.fragment_main, container, false); | |
| } | |
| @Override |
| public class ListDialogBuilder extends AlertDialog.Builder { | |
| private final Context mContext; | |
| public ListDialogBuilder(Context context) { | |
| super(context); | |
| mContext = context; | |
| } | |
| @SuppressLint("NewApi") |