Skip to content

Instantly share code, notes, and snippets.

@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
@JeffJacobson
JeffJacobson / Extensions.cs
Last active January 29, 2019 18:59
ArcObjects extension methods
using ESRI.ArcGIS.Carto;
using ESRI.ArcGIS.esriSystem;
using ESRI.ArcGIS.Geodatabase;
using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
namespace Wsdot.ArcGis.Extensions
{
public static class Extensions
@JeffJacobson
JeffJacobson / prepare.js
Last active November 15, 2018 22:58
Generate both an mjs (es6 module) and js file using TypeScript
const fs = require("fs");
const { exec } = require("child_process");
/**
* Response from exec
* @typedef ExecResponse
* @type {object}
* @property {?Error} error - If the operation resulted in an error, this will have a value.
* @property {string} stdout - Text written to stdout
@JeffJacobson
JeffJacobson / BikePedOpenDataUrl.arcade.js
Last active September 6, 2018 20:35
WSDOT Arcade expressions
// Gets the Open Data portal URL filtered to just this location
"https://gisdata-wsdot.opendata.arcgis.com/datasets/46a11f7e043842a5bfbbb1b69e7e4900_0/data?where=LocationID%20%3D%20%27" + $feature.LocationID + "%27"
@JeffJacobson
JeffJacobson / New-PipIndex.ps1
Created November 6, 2017 21:40
Utility for generating an index for pip
<#
.SYNOPSIS
Creates an index HTML page listing Python packages in the current directory.
.DESCRIPTION
Creates an index HTML page listing Python packages in the current directory.
.EXAMPLE
PS C:\> .\New-Index.ps1
Creates the index file and saves it to index.html
.INPUTS
Inputs (if any)
@JeffJacobson
JeffJacobson / Find-SDKTool.ps1
Created August 22, 2017 19:05
A script that finds different versions of Windows .NET SDK tools in expected directories.
<#
.SYNOPSIS
Finds an SDK tool in .NET SDK folders
.INPUTS
Name of tool (exe filename) to search for. (E.g., svcutil.exe)
.OUTPUTS
Outputs a list of matching filenames along with properties about the directories
* Windows SDK version
* .NET version
* 32- or 64-bit exe
@JeffJacobson
JeffJacobson / README.md
Last active March 19, 2022 14:32
Python script to dump ArcGIS ID messages

dumpidmsg.py

This is a python script to dump ArcGIS ID messages.