sudo service apache2 stop
sudo apt-get remove apache2
sudo apt-get autoremove
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#coding:utf-8 | |
import keras.backend as K | |
# ... kerasのコードなんとかかんとか | |
# precision, recall, f-measureを定義する | |
# 0.20というのが閾値になっているので適宜変更する |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#coding:utf-8 | |
from threading import Thread, Lock | |
import time | |
from datetime import datetime | |
import cv2 | |
import os | |
if __name__ == '__main__': |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#coding:utf-8 | |
# 参考 | |
# AWS LambdaからLambda呼んでハマった話。 | |
# http://qiita.com/shinichi-takahashi/items/04287757c5944818ffe5 | |
import json | |
import boto3 | |
lambda_client = boto3.client("lambda") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# manage.pyがある場所を示す | |
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 参考: http://thinkami.hatenablog.com/entry/2016/02/17/060852 | |
# settings.py | |
from django.contrib.messages import constants as message_constants | |
MESSAGE_TAGS = { | |
message_constants.ERROR: 'alert alert-danger', | |
} | |
# view.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PATH=/home/username/anaconda2/bin:$PATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// postgres install | |
sudo apt-get install postgresql | |
// change password | |
sudo passwd postgres | |
// postgresユーザでログイン | |
su - postgres |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
対象os ubuntu 16.04 | |
# php7.0-cliインストール | |
sudo apt install php7.0-cli | |
# requires ext-mbstring への対応 | |
# https://stackoverflow.com/questions/39200967/laravel-installation-error-in-ubuntu-16-04 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# for pytyon 2.7 | |
conda create -n cnd27a python=2.7 numpy scipy matplotlib pandas pil ipython scikit-learn jupyter | |
# for python 3.5 | |
conda create -n cnd35b python=3.5 numpy scipy matplotlib pandas pil ipython scikit-learn jupyter |
OlderNewer