Recent Snippets

New Snippet
jamesbright/misc/new-snippet.js

a module that reverses an array in javaScript

Framer Motion Image Component
droopytersen/components/framer-motion-image-component.ts

Tries to load an image url, but if if fails, displays the fallback image url

Column Mapping KeyOf Typescript
droopytersen/misc/column-mapping.ts

Example of some fancy typescript to make sure column definition types line up with item types keyof

ColumnMapping to Items Typescript
droopytersen/misc/column-mapping-to-items-typescript.ts

Example of passing column definitions and items to a "createCSV" function using typescript to ensure the types are inferred and match. Keyof KeyOfType

Request Utils
droopytersen/utils/request-utils.ts

Helpers for merging request options

Create API Service
droopytersen/utils/createApiService.ts

Creates an request method that snapshots base url and access token

API Tester SQL Schema
droopytersen/misc/api-tester-sql-schema.sql

This could be used in an UP migration

Stream a file w/ .NET Core Minimal API
droopytersen/misc/stream-a-file-w-net-core-minimal-api.cs

Shows how to create an endpoint that can stream a file but critically does not set the content-disposition "attachment". this way the browser will not force a download.

VS Code Snippet Syntax
droopytersen/misc/vs-code-snippet-syntax.txt

Shows how to inject dynamic bits into a VS Code snippet