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, send_from_directory | |
app = Flask(__name__, static_url_path='', static_folder='files') | |
@app.route("/") | |
def index(): | |
return send_from_directory("files", 'index.html') | |
if __name__ == "__main__": | |
app.run(debug=True) |
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 fetch from 'node-fetch'; | |
import * as fs from 'fs'; | |
function getUriWithCursor(baseUrl, cursor) { | |
return baseUrl + "&cursor=" + cursor | |
} | |
async function makeMoralisRequest(url) { | |
try { | |
const config = { |
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
=== RUN TestGetPointsByDistance | |
Inserted new Point. f0cfed41-fba5-4a2d-8179-9737b631d3c1 | |
<nil> | |
[{2d91d952-2825-4a28-ae53-5a58656c4f68 {Point [12.002 12]}} {f0cfed41-fba5-4a2d-8179-9737b631d3c1 {Point [12.002 12]}}] | |
--- PASS: TestGetPointsByDistance (0.00s) |