SagnikPradhan
Follow
Pinned Loading
-
d-zone-org/d-zone
d-zone-org/d-zone PublicAn ambient life simulation driven by user activity within a Discord server
-
-
🗄️ Back up a postgres database runni...
🗄️ Back up a postgres database running inside a docker container to S3 1#!/bin/bash
23set -e
4set -o pipefail
5 -
🎣 useForm hook. Simple as it can get
🎣 useForm hook. Simple as it can get 1import { Dispatch, useReducer } from "react"
2import * as z from "zod"
34/**
5* useForm hook
-
💀 Custom error and error handler
💀 Custom error and error handler 1export class AppError extends Error {
2public readonly name: string;
3public readonly isOperational: boolean;
4public readonly cause?: Error;
5public readonly additionalProps: { [additionalProps: string]: unknown };
-
⛓️ Chain functions as arrays
⛓️ Chain functions as arrays 1export type Fn<Input = any, Output = any> = (input: Input) => Output;
23export type Chain<Fns extends Fn[]> =
4// We chain two functions at one time
5Fns extends [infer Fn1, infer Fn2, ...infer RestFns]
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.