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
// https://developer.mozilla.org/en-US/docs/Learn/Server-side/Node_server_without_framework | |
const http = require('http'); | |
const url = require('url'); | |
const fs = require('fs'); | |
const path = require('path'); | |
const port = process.argv[2] || 9000; | |
http.createServer(function (req, res) { | |
console.log(`${req.method} ${req.url}`); |
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
class CustomScrollPhysics extends ScrollPhysics { | |
final double itemDimension; | |
CustomScrollPhysics({this.itemDimension, ScrollPhysics parent}) | |
: super(parent: parent); | |
@override | |
CustomScrollPhysics applyTo(ScrollPhysics ancestor) { | |
return CustomScrollPhysics( | |
itemDimension: itemDimension, parent: buildParent(ancestor)); |
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>API Example</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<script src="https://cdn.jsdelivr.net/npm/jquery@2.1.1/dist/jquery.min.js"></script> | |
<script type="text/javascript"> | |
var accessToken = "<Put Your Agent Access Token Here!>"; | |
var baseUrl = "https://api.api.ai/v1/"; | |
var synth; | |
var conversation=[]; |