Skip to content

Instantly share code, notes, and snippets.

View noahzgordon's full-sized avatar

Noah Zachary Gordon noahzgordon

View GitHub Profile
const newTableViewBaseSchema = z.object({
name: z.string(),
icon: z.string().nullable(),
});
const basicVitallyObjectTypes = Object.values(VitallyObjectType).filter((type) => (
type !== VitallyObjectType.customObject &&
type !== VitallyObjectType.surveyResponse &&
type !== VitallyObjectType.goal
)).map(type => z.literal(type)) as unknown as readonly [z.ZodTypeAny, z.ZodTypeAny, ...z.ZodTypeAny[]];
@noahzgordon
noahzgordon / .bash_profile
Created November 27, 2018 17:55
My bash setup! Note: this is the result of many years of accumulation and by no means a perfect example of a well-organized bash setup.
#!/usr/bin/env bash
export EDITOR=vim
echo "loading ~/.bash_profile"
for file in ~/.bash_profile_includes/*.sh; do
if echo "$file" | grep " " > /dev/null; then
echo "Ignoring $file"; continue;
fi