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
const functions = require('firebase-functions'); | |
const axios = require('axios'); | |
exports.helloWorld = functions.https.onRequest((request, response) => { | |
response.set('Access-Control-Allow-Origin', '*'); | |
response.set('Access-Control-Allow-Methods', 'GET, POST'); | |
const url = 'https://travel-birds-app.firebaseio.com/users/9b74fd7a-1a2b-11ea-9b18-f45c89b66fa9.json'; | |
return axios.get(url) | |
.then(data => response.status(200).json({ | |
message: data.data, |
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
matches | |
ngrams | |
*.swp | |
*.pem | |
*.json |
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 numpy as np | |
from scipy.misc import imread | |
from skimage.transform import resize | |
import matplotlib.pyplot as plt | |
import json, glob | |
#%matplotlib inline | |
def path_to_string(path): | |
'''Given a path to an image, return a string of that image as ascii''' |
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
<html> | |
<head> | |
<meta charset='UTF-8'> | |
<title>PoseNet</title> | |
<script src='https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.8.0/p5.min.js'></script> | |
<script src='https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.8.0/addons/p5.dom.min.js'></script> | |
<script src='https://unpkg.com/[email protected]/dist/ml5.min.js' type='text/javascript'></script> | |
</head> | |
<body> |
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 charset='UTF-8'> | |
<title>title</title> | |
</head> | |
<body></body> | |
<script src='gunzip.min.js'></script> | |
<script type='text/javascript'> |
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
from keras.preprocessing.image import load_img, save_img, img_to_array, array_to_img | |
from keras.applications import Xception, VGG19, InceptionV3, imagenet_utils | |
import keras.backend as K | |
import numpy as np | |
model = Xception(weights='imagenet') | |
# VGG16, VGG19, and ResNet take 224×224 images; InceptionV3 and Xception take 299×299 inputs | |
img = load_img('l.jpg', target_size=(299,299)) | |
arr = img_to_array(img) |
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
from flask import Flask, render_template | |
from smtp_client import send_email | |
from smtp_server import SMTPServer | |
app = Flask(__name__) | |
@app.route('/send_email') | |
def email(): | |
server = SMTPServer() | |
server.start() |
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
/** | |
* @author qiao / https://github.com/qiao | |
* @author mrdoob / http://mrdoob.com | |
* @author alteredq / http://alteredqualia.com/ | |
* @author WestLangley / http://github.com/WestLangley | |
*/ | |
THREE.OrbitControls = function ( object, domElement ) { | |
this.object = object; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.