Skip to content

Instantly share code, notes, and snippets.

View flleeppyy's full-sized avatar
💭
aaaaaaaaaaaaaaaaaaaaa

Chen Marisa flleeppyy

💭
aaaaaaaaaaaaaaaaaaaaa
View GitHub Profile
@flleeppyy
flleeppyy / pino-pretty-winston-transport.ts
Created July 17, 2025 21:28
Winston Pino pretty transport compat
import winston from "winston";
import pinoPretty from "pino-pretty";
new winston.transports.Stream({
stream: pinoPretty({
colorize: true,
translateTime: "yyyy-mm-dd HH:MM:ss",
timestampKey: "timestamp",
messageKey: "message",
@flleeppyy
flleeppyy / NumberInput.tsx
Created January 2, 2026 15:04
NumberInput with min/maxValueInfinity and infinity that i was really proud of type'ing
import { NumberInput as TGUINumberInput } from 'tgui-core/components';
import { ComponentProps } from 'react';
type BaseShim = Omit<
ComponentProps<typeof TGUINumberInput>,
'minValue' | 'maxValue'
> & {
step?: number;
};