This file contains 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 math import fabs | |
import tensorflow as tf | |
def test_func_tf(x): | |
x = tf.math.abs(x) | |
# Callables used for tf.cond(), which replicates the if statement | |
def continue_loop(): return tf.while_loop(cond, body, loop_vars=[x], return_same_structure=True) | |
def exit_loop(): return x |
This file contains 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 SKYGEAR_ENDPOINT = '<Your Endpoint Here>'; | |
const SKYGEAR_API_KEY = '<Your API Key Here>'; | |
skygear.config({ | |
'endPoint': SKYGEAR_ENDPOINT, // Endpoint | |
'apiKey': SKYGEAR_API_KEY, // API Key | |
}).then(() => { | |
console.log('Skygear container is now ready for making API calls.'); | |
}, (error) => { | |
console.error(error); |
This file contains 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> | |
<title>Skygear + Stripe demo</title> | |
<!--Skygear CDN--> | |
<script src="https://code.skygear.io/js/polyfill/latest/polyfill.min.js"></script> | |
<script src="https://code.skygear.io/js/skygear/latest/skygear.min.js"></script> | |
<!-- OG metadata --> | |
<meta property="og:title" content="Skygear + Stripe demo" /> | |
<meta property="og:description" content="Skygear Cloud Function to send form data to emails from static website" /> | |
<meta property="og:type" content="website" /> |