- OSフォーマット(初期化)しましょう
- 「Mac フォーマット」でぐぐる
- 最もやってはいけないこと: 「新しいOSにアップデート」
- ネット上に情報がない。開発環境を揃えるのが重要。
- Python はMacにもとから入ってる。Python2.xでよければ、それをつかえばよし。仮想環境は初学者には難しい。慣れてからで良い。
| @property (strong,nonatomic) MPMoviePlayerController *player; | |
| - (void)viewDidLoad | |
| { | |
| NSURL *url = [NSURL URLWithString:@"http://www.gomplayer.jp/img/sample/mp4_h264_aac.mp4"]; | |
| MPMoviePlayerController *player = [[MPMoviePlayerController alloc] initWithContentURL:url]; | |
| player.controlStyle = MPMovieControlStyleNone; | |
| self.player = player; | |
| [[NSNotificationCenter defaultCenter] addObserver:self |
| #commnd aliases | |
| alias ll='ls -la' | |
| case "${OSTYPE}" in | |
| darwin*) | |
| alias ls="ls -G" | |
| alias ll="ls -laG" | |
| alias la="ls -laG" | |
| ;; | |
| linux*) | |
| alias ls='ls --color' |
| func printIntMaxValue() { | |
| let maxInt16 = Int16.max | |
| let maxInt32 = Int32.max | |
| let maxInt64 = Int64.max | |
| let maxUInt16 = UInt16.max | |
| let maxUInt32 = UInt32.max | |
| let maxUInt64 = UInt64.max | |
| let maxInt = Int.max | |
| Log.d("maxInt16 \(maxInt16)") | |
| Log.d("maxInt32 \(maxInt32)") |
| #colab | |
| # google-drive-ocamlfuseのインストール | |
| # https://github.com/astrada/google-drive-ocamlfuse | |
| !apt-get install -y -qq software-properties-common python-software-properties module-init-tools | |
| !add-apt-repository -y ppa:alessandro-strada/ppa 2>&1 > /dev/null | |
| !apt-get update -qq 2>&1 > /dev/null | |
| !apt-get -y install -qq google-drive-ocamlfuse fuse | |
| # Colab用のAuth token作成 | |
| from google.colab import auth |
| alias ll='ls -laG' | |
| alias rm='rm -i' | |
| alias f="open ." | |
| cdf () { | |
| finderPath=`osascript -e 'tell application "Finder" | |
| try | |
| set currentFolder to (folder of the front window as alias) | |
| on error | |
| set currentFolder to (path to desktop folder as alias) | |
| end try |
| (0)前提 | |
| Macのバージョン確認 | |
| $ which brew | |
| $ brew list | |
| $ which pyenv | |
| $ which conda | |
| $ which python | |
| $ python --version | |
| $ which pip |
java -version 叩くと、JDKをインストールしてください、と言われる)| # >>> conda initialize >>> | |
| # !! Contents within this block are managed by 'conda init' !! | |
| __conda_setup="$('~/miniforge3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)" | |
| if [ $? -eq 0 ]; then | |
| eval "$__conda_setup" | |
| else | |
| if [ -f "~/miniforge3/etc/profile.d/conda.sh" ]; then | |
| . "~/miniforge3/etc/profile.d/conda.sh" | |
| else | |
| export PATH="~/miniforge3/bin:$PATH" |
| # rbenv | |
| export PATH="$HOME/.rbenv/bin:$PATH" | |
| eval "$(rbenv init -)" |