Skip to content

Instantly share code, notes, and snippets.

import React, { useState, useEffect } from 'react';
import { Link } from 'react-router-dom';
import { render } from '@testing-library/react';
import axios from 'axios'
import Map from 'react-store-locator'
function pythagoreanDistanceBetweenPoints(lat1, lon1, lat2, lon2) {
const R = 6371e3;
const x = (lon2 - lon1) * Math.cos((lat1 + lat2) / 2);
@mikeant42
mikeant42 / index.html
Created November 4, 2022 21:44
index fb
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Happy Citizens</title>
<!-- update the version number as needed -->
<script defer src="/__/firebase/9.13.0/firebase-app-compat.js"></script>
<!-- include only the Firebase features as you need -->
using Godot;
using System;
using System.Collections.Generic;
// TODO - run all of this in a new thread
public class AStarMap : Spatial
{
private Dictionary<string, int> points = new Dictionary<string, int>();
private AStar aStar;