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
events {} | |
http { | |
# Proxy cache configuration (can be disabled if unnecessary) | |
proxy_cache_path /var/www/cache levels=1:2 keys_zone=tile-cache:100m max_size=1000m inactive=120m; | |
proxy_temp_path /var/www/cache/tmp; | |
server { | |
listen 80; | |
server_name localhost; |
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
{ | |
"version": 8, | |
"sprite": "https://cdn.arcgis.com/sharing/rest/content/items/3e1a00aeae81496587988075fe529f71/resources/styles/../sprites/sprite", | |
"glyphs": "https://basemaps.arcgis.com/arcgis/rest/services/OpenStreetMap_v2/VectorTileServer/resources/fonts/{fontstack}/{range}.pbf", | |
"sources": { | |
"esri": { | |
"type": "vector", | |
"tiles": [ | |
"https://basemaps.arcgis.com/arcgis/rest/services/OpenStreetMap_v2/VectorTileServer/tile/{z}/{y}/{x}.pbf" | |
], |
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
function slopeIx(a, b, c) { | |
//GET POINT OF X AND Y INTERCEPT FROM POINT C AND LINE AB | |
const lines = turf.featureCollection([]); | |
const bearing1 = turf.bearing(a, b); | |
const slope = (b[1] - a[1]) / (b[0] - a[0]); | |
const point1 = [c[0], slope * (c[0] - a[0]) + a[1]]; | |
const point2 = [(c[1] - a[1]) / slope + a[0], c[1]]; | |
const lineArray = [a, b, point1, point2]; | |
//NORMALIZE LINE |
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
{ | |
"version": 8, | |
"sprite": "https://cdn.arcgis.com/sharing/rest/content/items/3e1a00aeae81496587988075fe529f71/resources/styles/../sprites/sprite", | |
"glyphs": "https://basemaps.arcgis.com/arcgis/rest/services/OpenStreetMap_v2/VectorTileServer/resources/fonts/{fontstack}/{range}.pbf", | |
"sources": { | |
"esri": { | |
"type": "vector", | |
"tiles": [ | |
"https://basemaps.arcgis.com/arcgis/rest/services/OpenStreetMap_v2/VectorTileServer/tile/{z}/{y}/{x}.pbf" | |
], |
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
{ | |
"quotes": [ | |
{ | |
"quote": "Better a diamond with a flaw than a pebble without.", | |
"author": "Confucius" | |
}, | |
{ | |
"quote": "But one of the core rules to make the Zettelkasten work for you is to use your own words, instead of just copying and pasting something you believe is useful or insightful. This forces you to at least create a different version of it, your own version.", | |
"author": "" | |
}, |
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
{ | |
"version": 8, | |
"sprite": "https://cdn.arcgis.com/sharing/rest/content/items/3e1a00aeae81496587988075fe529f71/resources/styles/../sprites/sprite", | |
"glyphs": "https://basemaps.arcgis.com/arcgis/rest/services/OpenStreetMap_v2/VectorTileServer/resources/fonts/{fontstack}/{range}.pbf", | |
"sources": { | |
"esri": { | |
"type": "vector", | |
"tiles": ["https://basemaps.arcgis.com/arcgis/rest/services/OpenStreetMap_v2/VectorTileServer/tile/{z}/{y}/{x}.pbf"], | |
"maxzoom": 22, | |
"attribution": "Map data <a href='https://www.openstreetmap.org/copyright' target='_blank'>©OpenStreetMap contributors</a>, Microsoft, Esri Community Maps contributors, <a href='https://www.arcgis.com/home/group.html?id=5e0d56e27d7e4a68955d399ca96c41cb#overview' target='_blank'>Map Style by Esri</a> | <a href='https://stamen.com/contact/' target='_blank'>Stamen</a>" |
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
# --------------------------------------------------------------------------- | |
# MuniLink Utilities > GIS sync | |
# --------------------------------------------------------------------------- | |
# Created by Malcolm Meyer 03/29/2022 | |
# Description: | |
# This script copies view tables from the MuniLink database to the GIS database | |
# --or-- it may create dictionaries instead | |
# Then these GIS Database tables (or dictionaries) are used to sync data to various GIS layers | |
# Which then syncs data over to Cartegraph in the morning via AGOL <> Cartegraph sync | |
# --------------------------------------------------------------------------- |
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 { booleanContains, booleanOverlap, booleanWithin, flatten, bbox, featureCollection, envelope, circle } from "@turf/turf" | |
/** | |
* This function takes a polygon or point and selects other features in the map that intersect this feature. It returns the features as well as an array contaiing a list of unique ids for these features based on the properties field provided. | |
* @param {object} map Mapbox map object | |
* @param {object} selectingFeatures GeoJSON FeatureCollection | |
* @param {Array} layers Array of Mapbox layers to query | |
* @param {string} field Field used to filter the features | |
* @param {Function} filter Function used on each feature to optionally filter out features. | |
* @example |
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
const fs = require('fs'), | |
path = require('path'); | |
const sharp = require('sharp'); | |
const ora = require("ora"); | |
if (process.argv.length < 3) { | |
console.log("A relative or full directory path is required.") | |
return | |
} |
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
const fs = require('fs'), | |
path = require('path'); | |
const sharp = require('sharp'); | |
const ora = require("ora"); | |
if (process.argv.length < 3) { | |
console.log("A relative or full directory path is required.") | |
return | |
} |
NewerOlder