- 初学者/プログラミング未経験者向け
- ※このメモはYouTubeMacでJavaの開発環境構築してみた【インストールからHello Worldまで】の補足です。
- macOS Catalina 10.15.1
- MacBook Pro 13inch メモリ16GB, SSD 2TB, CPU Core i7
- JDK未インストール状態(
java -version叩くと、JDKをインストールしてください、と言われる)
| # rbenv | |
| export PATH="$HOME/.rbenv/bin:$PATH" | |
| eval "$(rbenv init -)" |
| # >>> 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" |
java -version 叩くと、JDKをインストールしてください、と言われる)| (0)前提 | |
| Macのバージョン確認 | |
| $ which brew | |
| $ brew list | |
| $ which pyenv | |
| $ which conda | |
| $ which python | |
| $ python --version | |
| $ which pip |
| 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 |
| #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 |
| 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)") |
| #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' |
| @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 |