Skip to content

Instantly share code, notes, and snippets.

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
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)
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)
@johntips
johntips / chef_sumple
Last active August 29, 2015 14:19
chef_sumple.rb
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
@johntips
johntips / ansible sumple
Last active August 29, 2015 14:19
ansible_sumple.yml
- name: ユーザの作成
- user: name={{ item }} shell=/bin/bash password={{ password }} home=/home/{{ item }}
with_items:
- guchi
- soya
- shota
- teiyu
- name: パッケージインストール
apt: pkg=tmpreaper state=installed
@johntips
johntips / gist:5333796
Last active December 15, 2015 22:29
プログラミング方法論 第一回授業課題 FizzBuzz
<!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>