Skip to content

Instantly share code, notes, and snippets.

@JeffJacobson
JeffJacobson / setup-conda-prompt.py
Created April 9, 2026 16:09
Setup conda prompt for local environment
"""
Creates PowerShell scripts to modify the conda environment indicator at
the command prompt, so it doesn't display the lengthy absolute path of
the environment.
"""
from pathlib import Path, PurePath
from sys import stderr
from typing import Annotated
@JeffJacobson
JeffJacobson / ArcGIS Pro scales.csv
Last active February 26, 2026 18:35
Named scales for the "ArcGIS / Bing Maps / Google" scales preset in ArcGIS Pro.
70.5310735 House property
141.062147 Houses (1)
282.124294 Houses (2)
564.248588 Houses (3)
1128.497176 Building
2256.994353 Buildings
4513.988705 City Block
9027.977411 Streets
18055.954822 Neighborhood
36111.909643 Town
@JeffJacobson
JeffJacobson / display-features-as-table.js
Last active February 4, 2026 21:58
Display FeatureSet as a Table - Postman - Post Response Visualization
/**
* @typedef SpatialReference
* @property {number} wkid
* @property {?number} latestWkid
*/
/**
* @typedef Field
* @property {string} name
* @property {string} type
# Try the following command sequence:
git lfs uninstall
git reset --hard
git lfs install
git lfs pull
# In case if this is not working (because this was not working for me), the following hack may work:
git rm --cached -r .
@JeffJacobson
JeffJacobson / README.md
Last active October 8, 2025 19:32
Locate WSDOT milepost nearest click

Locating WSDOT Milepost via feature layer queries and display filters.

See the JSDoc comment at the top of index.ts for details

@JeffJacobson
JeffJacobson / Microsoft.Powershell_profile.ps1
Last active June 21, 2024 01:15
Profile that imports modules and sets up programs ONLY IF THEY ARE AVAILABLE
# Tests if a command exists.
function commandExists($commandName) {
return $null -ne (Get-Command $commandName -ErrorAction SilentlyContinue)
}
# Tests to see if a module is installed on the computer.
function moduleExists($moduleName) {
return $null -ne (Get-Module $moduleName -ListAvailable)
}
@JeffJacobson
JeffJacobson / audio2midi.md
Created January 24, 2023 21:24 — forked from natowi/audio2midi.md
List of open source audio to midi packages
@JeffJacobson
JeffJacobson / commodore-64-colors.json
Last active November 9, 2022 21:05
Commodore 64 color palette JSON and script that generated it
{
"Black": "#000000",
"White": "#FFFFFF",
"Red": "#880000",
"Cyan": "#AAFFEE",
"Violet / purple": "#CC44CC",
"Green": "#00CC55",
"Blue": "#0000AA",
"Yellow": "#EEEE77",
"Orange": "#DD8855",
pip list --outdated --format json | ConvertFrom-Json | foreach { $_.name } | Out-File outdated.txt
pip install -r .\outdated.txt --update
@JeffJacobson
JeffJacobson / index.html
Created June 21, 2022 15:38
MapImageLayer Clipping Sample
<html>
<head>
<link rel="stylesheet" href="min.css">
<meta charset="utf-8" />
<meta
name="viewport"
content="initial-scale=1,maximum-scale=1,user-scalable=no"
/>
<!--
ArcGIS API for JavaScript, https://js.arcgis.com