Skip to content

Instantly share code, notes, and snippets.

View narkeeso's full-sized avatar

Michael Narciso narkeeso

View GitHub Profile
@jordanebelanger
jordanebelanger / logger.ts
Last active June 2, 2023 21:09
Fastify GCP Stackdriver logging agent compatible pino logger
import * as P from 'pino'
import {FastifyReply, FastifyRequest} from 'fastify'
const enum PINO_LEVELS {
trace = 10,
debug = 20,
info = 30,
warn = 40,
error = 50,
fatal = 60,

Folder Structure

Please note

While this gist has been shared and followed for years, I regret not giving more background. It was originally a gist for the engineering org I was in, not a "general suggestion" for any React app.

Typically I avoid folders altogether. Heck, I even avoid new files. If I can build an app with one 2000 line file I will. New files and folders are a pain.

@staltz
staltz / introrx.md
Last active June 21, 2024 12:27
The introduction to Reactive Programming you've been missing