Skip to content

Instantly share code, notes, and snippets.

@nwatab
nwatab / App.js
Last active May 12, 2021 10:26
Redirect after form submission in React router v5 using React Hooks
import React, {useState, useEffect} from 'react';
import { Redirect, useLocation } from 'react-router'
function App() {
return (
<BrowserRouter>
<div>
<Switch>
<Route exact path="/">
<Home />
@nwatab
nwatab / m5camera-arduino-googledrive.ino
Created December 21, 2019 07:22
Upload photo taken by M5Camera to Google Drive every 15 seconds
/*
M5CameraでGoogle DriveにJPEGファイルをアップロードするテスト
*/
#include "esp_camera.h"
#include <WiFi.h>
#include <WiFiClientSecure.h>
#include <DNSServer.h>
#include <WebServer.h>
#include <FS.h>
@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.
@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 / README.md
Last active August 2, 2019 05:34
Grad-CAM++ by fine-tuning VGG16 for anomaly detection
@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 / 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 / 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 / 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 / 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);