#Add Postgis extension:
create extension postgis| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Globe Emoji Animation</title> | |
| <style>h1 { font-size: 70vh; text-align: center; padding: 0; margin: 0 }</style> | |
| </head> | |
| <body> | |
| <h1>🌎</h1> | |
| <script> | |
| const globeEmojis = ['🌎', '🌍', '🌏']; |
| //Converts a bounding box bounded by minLat and maxLat and minLng and maxLng to a list of geohashes (e.g. ["60;24/19/84", "60;24/19/85"]) used for MQTT topic filters | |
| function bbox2geohashes(minLat, minLng, maxLat, maxLng) { | |
| var deltaLat = maxLat - minLat; | |
| var deltaLng = maxLng - minLng; | |
| var geohashLevel = Math.max(Math.ceil(Math.abs(Math.log10(deltaLat))), Math.ceil(Math.abs(Math.log10(deltaLng)))); | |
| var delta = Math.pow(10, -geohashLevel); | |
| var geohashes = []; | |
| Step 1 - Create .crt file | |
| cat domainname.crt domainname.ca-bundle > domainname-ssl-bundle.crt | |
| Step 2- | |
| Add lines for ssl_certificate in nginx configuration | |
| server { | |
| listen 80 default_server; |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # Python 2 | |
| import os | |
| from sqlite3 import dbapi2 as db | |
| db_folder = "/" | |
| db_name = "test" |
| import java.awt.Graphics2D; | |
| import java.awt.Rectangle; | |
| import java.awt.image.BufferedImage; | |
| import java.io.File; | |
| import java.net.URL; | |
| import javax.imageio.ImageIO; | |
| import org.geotools.data.FeatureSource; | |
| import org.geotools.data.shapefile.ShapefileDataStore; | |
| import org.geotools.factory.CommonFactoryFinder; | |
| import org.geotools.geometry.jts.ReferencedEnvelope; |
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using GeoAPI.Geometries; | |
| using NetTopologySuite.Features; | |
| using NetTopologySuite.Geometries; | |
| using NetTopologySuite.IO; | |
| using System.Globalization; | |
| namespace ShortestPath |