Skip to content

Instantly share code, notes, and snippets.

@nwatab
nwatab / google-app-script-qbhouse-email-notification.js
Last active April 16, 2018 16:01
QBHouse-mail-notification-for-no-waiting
/**
* This is a code for Google App Script to see if there is a line for QBHouse at Kojimachi.
* main(): Access to qb house kojimachi homepage and check the number of people in line.
* Replace an email with yours.
* doGet(): This function is for publishing a web service as API (only one endpoint).
*/
function main() {
var url = 'http://www.qbhouse.co.jp/search/detail.php?id=475'; // QB HOUSE Kojimachi
var text = UrlFetchApp.fetch(url).getContentText('utf-8');
@nwatab
nwatab / SupportersColabJune1.jpg
Last active February 18, 2022 14:44
SupportersColabJune1
SupportersColabJune1.jpg
@nwatab
nwatab / linebot.js
Last active July 21, 2021 14:11
CRUD-operation-in-google-app-script-with-LINE-bot
var CHANNEL_ACCESS_TOKEN = 'xxx=';
var line_endpoint = 'https://api.line.me/v2/bot/message/reply';
function doGet(e) {
return ContentService.createTextOutput(UrlFetchApp.fetch("http://ip-api.com/json"));
}
function doPost(e) {
var contents = JSON.parse(e.postData.contents);
@nwatab
nwatab / LINE-BOT-GAS-SAMPLE.js
Last active May 27, 2021 10:35
Supporterz 2 and 24, October, 2018
We couldn’t find that file to show.
@nwatab
nwatab / Image-classification-API-with-FLASK-KERAS
Last active August 6, 2021 06:17
Flask image classification API by Keras and Flask
We couldn’t find that file to show.
@nwatab
nwatab / gan-mnist.py
Last active January 21, 2019 11:15
simple Generative adversarial networks for MNIST
import matplotlib.pyplot as plt
import numpy as np
from keras.datasets import mnist
from keras.models import Sequential
from keras.layers import Dense, Dropout, Flatten, BatchNormalization
from keras.layers.advanced_activations import LeakyReLU
from keras.layers import Conv2D, MaxPooling2D, Reshape, UpSampling2D, InputLayer
from keras.optimizers import Adam
import os
@nwatab
nwatab / turing-pattern.ipynb
Last active May 1, 2019 20:57
turing-pattern
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nwatab
nwatab / README.md
Last active August 2, 2019 05:34
Grad-CAM++ by fine-tuning VGG16 for anomaly detection
@nwatab
nwatab / outputs.md
Last active May 25, 2020 02:54
UNet implementation of Matlab sample for semantic segmentation https://jp.mathworks.com/help/images/multispectral-semantic-segmentation-using-deep-learning.html?lang=en . Outputs are made on different hyperparameters.

Screen Shot 2019-09-12 at 0 14 42

Screen Shot 2019-09-12 at 0 18 56

@nwatab
nwatab / Tripletloss_CIFAR-10.ipynb
Last active September 9, 2019 13:26
Triplet loss for embedding and clustering CIFAR-10 image dataset
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.