Skip to content

Instantly share code, notes, and snippets.

View mychaelstyle's full-sized avatar

Masanori Nakashima mychaelstyle

View GitHub Profile
@mychaelstyle
mychaelstyle / Install_pyenv_to_ubuntu16_5.2.0.sh
Last active October 10, 2018 04:02
Install_pyenv_to_ubuntu16_5.2.0
# 必要パッケージのインストール
sudo apt-get install git gcc make openssl libssl-dev libbz2-dev libreadline-dev libsqlite3-dev
# pyenvのインストール
cd
git clone git://github.com/yyuu/pyenv.git ${HOME}/.pyenv
cat << EOF >> ${HOME}/.profile
export PYENV_ROOT=\${HOME}/.pyenv
export PATH=\${PYENV_ROOT}/bin:\${PATH}
eval "\$(pyenv init -)"
EOF
@mychaelstyle
mychaelstyle / create_random_data.sh
Created May 22, 2018 14:14
Create random data bash
#!/bin/bash
filename="sampledata.csv"
rmax=5000
pmax=150
echo "" > $filename
for ((i=0; i < $rmax; i++)); do
row="${i},"
for ((j=0; j < $pmax; j++)); do
row="$row$(($RANDOM % 50)),"
done
@mychaelstyle
mychaelstyle / Install_pyenv_for_windows
Last active December 16, 2018 04:13
Install_pyenv_for_windows
# 先にDocker community edition for windowsを下記URLからダウンロードしてインストール
# https://store.docker.com/editions/community/docker-ce-desktop-windows
# jupyterの入ったdockerイメージをダウンロード
docker pull jupyter/datascience-notebook
# dockerでjupyter notebookを起動
docker run -d -p 8888:8888 -v "$(pwd):/home/jovyan/work" jupyter/datascience-notebook start-notebook.sh --NotebookApp.token=''