Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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
pip list --outdated --format json | ConvertFrom-Json | foreach { $_.name } | Out-File outdated.txt
pip install -r .\outdated.txt --update
@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",
@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 / 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)
}