Skip to content

Instantly share code, notes, and snippets.

View isaacadams's full-sized avatar
can't. stop. coding.

Isaac Adams isaacadams

can't. stop. coding.
View GitHub Profile
@isaacadams
isaacadams / zipById.ts
Created June 27, 2025 04:14
zip two arrays based on a common key and place them into properties
// Custom zip function
static zipById<T, K>(array1: T[], array2: K[], config1: { key: keyof T; name: string }, config2: { key: keyof K; name: string }) {
// Create lookups by the specified key properties
const lookup1 = keyBy(array1, config1.key);
const lookup2 = keyBy(array2, config2.key);
// Get all unique keys (IDs) from both arrays
const allKeys = union(keys(lookup1), keys(lookup2));
// Map over keys to create new objects
@isaacadams
isaacadams / keybase.md
Created January 2, 2022 22:38
keybase

Keybase proof

I hereby claim:

  • I am isaacadams on github.
  • I am huskydev (https://keybase.io/huskydev) on keybase.
  • I have a public key ASBtLp-glTJNaOQhhkuC-0I3rCGB7EDJnu7vi_DAEqG5rgo

To claim this, I am signing this object:

FROM microsoft/dotnet:2.1.401-sdk
# THIS WILL CAUSE INSTALLATIONS TO HAPPEN IN THIS DIRECTORY
ENV HOME="/build"
# SETUP DEPENDENCIES
RUN apt-get update && \
apt-get upgrade -qy && \
apt-get install --yes curl
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash
namespace Example
{
public class MessageViewModel
{
public string Title { get; set; }
public string Message { get; set; }
}
}