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
import keras | |
from keras.datasets import cifar10 | |
import numpy as np | |
from keras.applications.inception_v3 import InceptionV3, preprocess_input | |
import scipy | |
from scipy import misc | |
import os | |
from keras.utils import np_utils | |
from keras.callbacks import ModelCheckpoint | |
from keras.models import Sequential |
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
import numpy as np | |
import matplotlib.pyplot as plt | |
from scipy.misc import toimage | |
from keras.datasets import cifar10 | |
if __name__ == '__main__': | |
# CIFAR-10データセットをロード | |
(X_train, y_train), (X_test, y_test) = cifar10.load_data() | |
print(X_train.shape, y_train.shape) | |
print(X_test.shape, y_test.shape) |
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
import numpy as np | |
import matplotlib.pyplot as plt | |
from scipy.misc import toimage | |
from keras.datasets import cifar10 | |
if __name__ == '__main__': | |
# CIFAR-10データセットをロード | |
(X_train, y_train), (X_test, y_test) = cifar10.load_data() | |
print(X_train.shape, y_train.shape) | |
print(X_test.shape, y_test.shape) |
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
p "ユーザー作成" | |
%w{teiyu guchi soya shota}.each do |username| | |
user username do | |
shell "/bin/bash" | |
password node['passwd'] | |
home "/home/#{username}" | |
action :create | |
end | |
end | |
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
- name: ユーザの作成 | |
- user: name={{ item }} shell=/bin/bash password={{ password }} home=/home/{{ item }} | |
with_items: | |
- guchi | |
- soya | |
- shota | |
- teiyu | |
- name: パッケージインストール | |
apt: pkg=tmpreaper state=installed |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame | |
Remove this if you use the .htaccess --> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | |
<title>fizzbuzz</title> |