Skip to content

Instantly share code, notes, and snippets.

View shu-yusa's full-sized avatar

Shusaku Yusa shu-yusa

  • Tokyo, Japan
View GitHub Profile
@shu-yusa
shu-yusa / file0.txt
Last active June 14, 2018 16:16
[TensorFlow] MirroredStrategyを用いて複数GPU計算を行う ref: https://qiita.com/shu-yusa/items/e93e934a14849541de78
distribution = tf.contrib.distribute.MirroredStrategy()
config = tf.estimator.RunConfig(train_distribute=distribution)
classifier = tf.estimator.Estimator(model_fn=model_fn, config=config)

Use PostgreSQL in mac using docker

Create docker container.

docker run --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword -p 5432:5432 -d postgres

Install postgresql client into mac.

brew install postgresql
@shu-yusa
shu-yusa / heroku.md
Created September 24, 2017 06:27
Heroku

Heroku tutorial

Prerequisite

  • a free Heroku account.
  • Python3.6.
  • pipenv installed locally. If not, install by pip install pipenv.
  • Postgresql installed locally. If not, install by brew install postgresql.

Setup

Install Heroku CLI from Getting Started on Heroku with Python | Heroku Dev Center.