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
| /* | |
| M5CameraでGoogle DriveにJPEGファイルをアップロードするテスト | |
| */ | |
| #include "esp_camera.h" | |
| #include <WiFi.h> | |
| #include <WiFiClientSecure.h> | |
| #include <DNSServer.h> | |
| #include <WebServer.h> | |
| #include <FS.h> |
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 React, {useState, useEffect} from 'react'; | |
| import { Redirect, useLocation } from 'react-router' | |
| function App() { | |
| return ( | |
| <BrowserRouter> | |
| <div> | |
| <Switch> | |
| <Route exact path="/"> | |
| <Home /> |
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 tensorflow as tf | |
| tf.reset_default_graph() | |
| img_h = img_w = 28 | |
| img_size_flat = img_h * img_w | |
| n_classes = 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
| import React, { useState } from 'react'; | |
| import { StyleSheet, Text, View } from 'react-native'; | |
| import { Container, Content, Header, Form, Input, Item, Button, Label} from 'native-base' | |
| import * as firebase from 'firebase'; | |
| const firebaseConfig = { | |
| apiKey: "XXX", | |
| authDomain: "xxx.firebaseapp.com", | |
| databaseURL: "https://xxx.firebaseio.com", |
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
| // For swipable row, https://github.com/GeekyAnts/NativeBase/issues/1430#issuecomment-350243994 | |
| // Wait, SwipeRow is remooved https://docs.nativebase.io/Components.html#swipeable-multi-def-headref | |
| // Use react-native-swipe-list-view | |
| import React, { useState } from 'react'; | |
| import { StyleSheet, Text, FlatList, StatusBar } from 'react-native'; | |
| import { Container, Content, Header, Input, Item, Button, ListItem, Icon, View} from 'native-base' | |
| export default function App() { | |
| const data = [{key: '0', title: 'Washington'}, {key: '1', title: 'Adams'}, {key: '2', title: 'Jefferson'}] |
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 React, {useState, useEffect} from 'react'; | |
| import { NavigationContainer } from '@react-navigation/native'; | |
| import { createStackNavigator } from '@react-navigation/stack'; | |
| import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; | |
| import { createDrawerNavigator } from "@react-navigation/drawer"; | |
| import { Splash, SignIn, CreateAccount, Details, Home, Search, Search2, Profile} from './Screens'; | |
| import { AuthContext } from './context'; | |
| const AuthStack = createStackNavigator(); |
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
| #include "esp_camera.h" | |
| #include <WiFi.h> | |
| #include <WiFiClientSecure.h> | |
| #include <DNSServer.h> | |
| #include <WebServer.h> | |
| #include <FS.h> | |
| #include <SPIFFS.h> | |
| //#define M5CAM_MODEL_A | |
| #define M5CAM_MODEL_B |
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 tensorflow as tf | |
| """ | |
| Thanks to | |
| https://cv-tricks.com/keras/understand-implement-resnets/ | |
| https://qiita.com/gucchi0403/items/097d83f0e8a6091c1240 | |
| """ | |
| def resnet(inpt, out_units): | |
| def weight_variable(shape, name=None): |
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 React, {useState, useEffect, useRef} from 'react' | |
| import { CardMedia } from '@material-ui/core' | |
| interface ICardMediaProp { | |
| component: string, | |
| image: string, | |
| alt: string, | |
| height: string, | |
| } | |
| export default (props: ICardMediaProp) => { |
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 requests | |
| import os | |
| // page has 1 to 4 | |
| url = 'https://www.xeno-canto.org/api/2/recordings?query=cnt:japan+q:a&page=1' | |
| res = requests.get(url, headers={'Accept-language': 'ja'}).json() | |
| def download_media(url, filename): | |
| try: | |
| res = requests.get(medialink) |