This file contains hidden or 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 face_keras as face | |
import sys, os | |
from keras.preprocessing.image import load_img, img_to_array | |
import numpy as np | |
import cv2 | |
import time | |
cascade_path = "haarcascade_frontalface_alt.xml" | |
cascade = cv2.CascadeClassifier(cascade_path) | |
cam = cv2.VideoCapture(0) |
This file contains hidden or 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
The MIT License (MIT) |
This file contains hidden or 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
[ | |
{ | |
"num": "n01440764", | |
"en": "tench", | |
"ja": "テンチ" | |
}, | |
{ | |
"num": "n01443537", | |
"en": "goldfish", | |
"ja": "金魚" |
This file contains hidden or 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
var express = require("express"); | |
var app = express(); | |
var path = require("path"); | |
var server = require('http').Server(app); | |
var io = require('socket.io')(server); | |
var fs = require('fs'); | |
var request = require('request'); | |
var five = require('johnny-five'); | |
var exec = require('child_process').exec; | |
var OpenJTalk = require('openjtalk'); |
This file contains hidden or 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
var express = require("express"); | |
var app = express(); | |
var path = require("path"); | |
var server = require('http').Server(app); | |
var io = require('socket.io')(server); | |
var fs = require('fs'); | |
var request = require('request'); | |
var five = require('johnny-five'); | |
var exec = require('child_process').exec; | |
var OpenJTalk = require('openjtalk'); |
This file contains hidden or 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
[ | |
{ | |
"ja": "フシギダネ", | |
"en": "Bulbasaur" | |
}, | |
{ | |
"ja": "フシギソウ", | |
"en": "Ivysaur" | |
}, | |
{ |
This file contains hidden or 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
# Description: | |
# Wifi定期接続 | |
# | |
# Commands: | |
# | |
cronJob = require('cron').CronJob | |
child_process = require('child_process') | |
module.exports = (robot) -> | |
new cronJob | |
cronTime: "*/10 * * * *" |
This file contains hidden or 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
# Description: | |
# 時報. | |
# | |
# Commands: | |
# 時刻を受け取ってhh:mm形式で返す | |
tohhmmTime = (date) -> | |
hh = ('0' + date.getHours()).slice(-2) | |
mm = ('0' + date.getMinutes()).slice(-2) | |
return "#{hh}:#{mm}" |
This file contains hidden or 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
# Description: | |
# 日報. | |
# | |
# 時刻を受け取ってYYYY-mm-dd形式で返す | |
toYmdDate = (date) -> | |
Y = date.getFullYear() | |
m = ('0' + (date.getMonth() + 1)).slice(-2) | |
d = ('0' + date.getDate()).slice(-2) | |
return "#{Y}-#{m}-#{d}" |
This file contains hidden or 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> | |
<head> | |
<meta http-equiv="content-type" | |
content="text/html; charset=UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no"> | |
<title><%= title %></title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" type="text/css" /> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"> | |
<link rel='stylesheet' href='/stylesheets/style.css' /> |