I like and prefer BUN... AI drifts😵💫. THIS stops that from happening.
Human and AI-Paired Programming Environments (HAIPPy)
| // zod schema | |
| z.object({ | |
| // valid if string or: | |
| optional: z.string().optional(), // field not provided, or explicitly `undefined` | |
| nullable: z.string().nullable(), // field explicitly `null` | |
| nullish: z.string().nullish(), // field not provided, explicitly `null`, or explicitly `undefined` | |
| }); | |
| // type | |
| { |
preface: Posting these online since it sounds like these notes are somewhat interesting based on a few folks I've shared with. These are semi-rough notes that I basically wrote for myself in case I ever needed to revisit this fix, so keep that in mind.
I recently bought an LG ULTRAGEAR monitor secondhand off of a coworker. I really love it and it's been great so far, but I ran into some minor issues with it in Linux. It works great on both Mac and Windows, but on Linux it displays just a black panel until I use the second monitor to go in and reduce the refresh rate down to 60 Hz.
This has worked decent so far but there's some issues:
| // zod schema | |
| z.object({ | |
| // valid if string or: | |
| optional: z.string().optional(), // field not provided, or explicitly `undefined` | |
| nullable: z.string().nullable(), // field explicitly `null` | |
| nullish: z.string().nullish(), // field not provided, explicitly `null`, or explicitly `undefined` | |
| }); | |
| // type | |
| { |
| [gcode_macro PREP_PRINT] | |
| description: Loads and starts the print | |
| variable_x_max: 0 | |
| variable_y_max: 0 | |
| variable_z_max: 0 | |
| variable_nozzle: 0 | |
| variable_fila_dia: 0 | |
| variable_bed_temp: 0 | |
| variable_extruder_temp: 0 | |
| variable_chamber_temp: 0 |
| import glob from 'fast-glob' | |
| import { build } from 'esbuild' | |
| import { Project } from 'ts-morph' | |
| const project = new Project({ | |
| compilerOptions: { | |
| outDir: 'dist', | |
| emitDeclarationOnly: true, | |
| }, | |
| tsConfigFilePath: './tsconfig.json', |
| const text = css({ | |
| color: '$gray12', | |
| variants: { | |
| size: { | |
| // corrective letter-spacing and text-indent styles | |
| // should go here too, because they're determined by font-size. | |
| // You could also put line-height here too, if your devs prefer | |
| // a default line-height that works in some cases. But understand | |
| // that line-height is also a function of line-length, so the |
| # | |
| # NixOS Configuration for Framework Laptop | |
| # | |
| { config, lib, pkgs, modulesPath, ... }: | |
| { | |
| boot.kernelParams = [ "mem_sleep_default=deep" ]; |
| import { styled } from "@stitches/react" | |
| const Stack = styled("div", { | |
| display: "flex", | |
| variants: { | |
| dir: { | |
| col: { flexDirection: "column" }, | |
| row: { flexDirection: "row" }, | |
| }, |
| type State = string; | |
| type Message = string; | |
| type StatesList = readonly State[]; | |
| type MessagesConfig = Record<State, Record<Message, State>>; | |
| type OneOf<S extends StatesList> = S[number]; | |
| type Send< | |
| SBConfig extends StateBuilderConfig<StatesList, State, State>, |