Skip to content

Instantly share code, notes, and snippets.

View tamanobi's full-sized avatar

Kohki YAMAGIWA tamanobi

View GitHub Profile
@tamanobi
tamanobi / dokku_clone.log
Created January 30, 2019 01:50
`dokku --trace apps:clone like-dler like-dler3`
$ dokku --trace apps:clone like-dler like-dler3
+ export DOKKU_HOST_ROOT=/home/dokku
+ DOKKU_HOST_ROOT=/home/dokku
+ export DOKKU_DISTRO
++ . /etc/os-release
++ echo ubuntu
+ DOKKU_DISTRO=ubuntu
+ export DOKKU_IMAGE=gliderlabs/herokuish
+ DOKKU_IMAGE=gliderlabs/herokuish
+ export DOKKU_LIB_ROOT=/var/lib/dokku
@tamanobi
tamanobi / 201901242251.log
Created January 24, 2019 13:51
`dokku report APP_NAME` output
$ dokku report like-dler
-----> uname: Linux www5394uf 4.15.0-32-generic #35-Ubuntu SMP Fri Aug 10 17:58:07 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
-----> memory:
total used free shared buff/cache available
Mem: 1993 356 184 3 1452 1449
Swap: 2047 346 1701
-----> docker version:
Client:
Version: 18.06.1-ce
API version: 1.38
@tamanobi
tamanobi / dokku_clone.log
Created January 17, 2019 11:03
`dokku clone` occurs permission denied and return 1.
$ DOKKU_TRACE=1 dokku apps:clone image-viewer feature-review-application
+ export DOKKU_HOST_ROOT=/home/dokku
+ DOKKU_HOST_ROOT=/home/dokku
+ export DOKKU_DISTRO
++ . /etc/os-release
++ echo ubuntu
+ DOKKU_DISTRO=ubuntu
+ export DOKKU_IMAGE=gliderlabs/herokuish
+ DOKKU_IMAGE=gliderlabs/herokuish
+ export DOKKU_LIB_ROOT=/var/lib/dokku
@tamanobi
tamanobi / HowToReadImageFromUrl.ipynb
Last active June 24, 2018 01:37
How to read image from url.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tamanobi
tamanobi / add_new_column_with_mutate.R
Last active June 20, 2018 01:27
How to add new random value column with dplyr mutate.
library(dplyr)
# packageVersion('dplyr')
# [1] ‘0.7.5’
sex <- factor(rep(c(0,1,2,3), 2), labels=c("female", "male", "not_known", "not_applicable"))
login <- factor(rep(c(0,1), 4), labels=c("yes", "no"))
d <- data.frame(sex, login)
d %>% mutate(
click = case_when(
sex == 'female' & login == 'yes' ~ rbinom(n(), 1, 0.8)
@tamanobi
tamanobi / decile_analysis.ipynb
Created June 14, 2018 16:07
Decile Analysis with Pareto Chart
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tamanobi
tamanobi / decile_analysis.ipynb
Created June 14, 2018 16:06
Decile Analysis with Pareto Chart
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tamanobi
tamanobi / LorenzCurve.ipynb
Last active June 14, 2018 14:00
LorenzCurve
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.