Type 'from' in the editor and...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"input": { | |
"blocklist": [], | |
"compressor#0": { | |
"attack": 5.0, | |
"boost-amount": 6.0, | |
"boost-threshold": -72.0, | |
"bypass": false, | |
"dry": -100.0, | |
"hpf-frequency": 10.0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Credits to Louistiti from Drizzle Discord: https://discord.com/channels/1043890932593987624/1130802621750448160/1143083373535973406 | |
import { sql } from "drizzle-orm"; | |
const clearDb = async (): Promise<void> => { | |
const query = sql<string>`SELECT table_name | |
FROM information_schema.tables | |
WHERE table_schema = 'public' | |
AND table_type = 'BASE TABLE'; | |
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Thanks https://github.com/colinhacks/zod/issues/372#issuecomment-830094773 | |
type Implements<Model> = { | |
[key in keyof Model]-?: undefined extends Model[key] | |
? null extends Model[key] | |
? z.ZodNullableType<z.ZodOptionalType<z.ZodType<Model[key]>>> | |
: z.ZodOptionalType<z.ZodType<Model[key]>> | |
: null extends Model[key] | |
? z.ZodNullableType<z.ZodType<Model[key]>> | |
: z.ZodType<Model[key]>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// $list has a nested structure like: | |
// lists: [ | |
// { | |
// "id": "TODO-ns88qrJDVXizlF0l", | |
// …properties omitted for brevity | |
// "cards": [ | |
// { | |
// "id": "6OPzS6B6WoBT0J_EGqUEy", | |
// "listId": "TODO-ns88qrJDVXizlF0l", | |
// …properties omitted for brevity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// JavaScript functional programming | |
// Monad under 60 seconds | |
const Functor = { | |
of: value => ({ | |
value: value, | |
inspect: () => console.log(`Functor(${value})`), | |
map: fn => Functor.of(fn(value)) | |
}) | |
}; |
Service | SSL | status | Response Type | Allowed methods | Allowed headers |
---|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Note: Doesn't work anymore (at least for Gnome 3.34, possibly later; see Python script instead) | |
# Usage: gnome-inhibit <command-line> | |
# Example: gnome-inhibit mpv video.mp4 | |
cookie=$(dbus-send \ | |
--session \ | |
--dest=org.freedesktop.ScreenSaver \ | |
--type=method_call \ | |
--print-reply=literal \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Author: SuperPaintman <SuperPaintmanDeveloper@gmail.com> | |
# | |
### | |
# Constants | |
### | |
RETVAL=0 |
Hi Zach :D
Modals are funny beasts, usually they are a design cop-out, but that's okay, designers have to make trade-offs too, give 'em a break.
First things first, I'm not sure there is such thing as a "simple" modal that is production ready. Certainly there have been times in my career I tossed out other people's "overly complex solutions" because I simply didn't understand the scope of the problem, and I have always loved it when people who have a branch of experience that I don't take the time
NewerOlder