Skip to content

Instantly share code, notes, and snippets.

View pkayokay's full-sized avatar

Paul Kim pkayokay

  • Popmenu
  • 21:42 (UTC -04:00)
View GitHub Profile
@pkayokay
pkayokay / 1. How many users are on the DNC list
Last active January 27, 2025 21:56
DNC list queries
select count(*) from users where is_on_dnc_list = true
7,961,044
@pkayokay
pkayokay / ColorInput.tsx
Created November 5, 2024 21:40
React ColorInput Component
export const ColorInput = ({
id,
label,
value,
onChange,
}: {
id: string;
label: string;
description?: string;
placeholder?: string;
@pkayokay
pkayokay / TextInput.tsx
Created October 23, 2024 22:05
Example of a text input in React
export const TextInput = ({
autoComplete,
description,
id,
label,
onChange,
placeholder,
required,
value,
}: {
export const ColorInput = ({
id,
label,
value,
onChange,
}: {
id: string;
label: string;
description?: string;
placeholder?: string;
[
{ "keys": ["option+space"], "command": "toggle_terminus_panel" },
{ "keys": ["alt+left"], "command": "terminus_keypress", "args": {"key": "b", "alt": true}, "context": [{"key": "terminus_view"}] },
{ "keys": ["alt+right"], "command": "terminus_keypress", "args": {"key": "f", "alt": true}, "context": [{"key": "terminus_view"}] },
{ "keys": ["option+k"], "command": "terminus_reset", "args": {"key": "f", "alt": true}, "context": [{"key": "terminus_view"}] },
{ "keys": ["option+shift+r"], "command": "reveal_in_side_bar"},
{ "keys": ["ctrl+t"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },
{ "keys": ["ctrl+left"], "command": "move_to", "args": {"to": "bol", "extend": false} },
{ "keys": ["ctrl+right"], "command": "move_to", "args": {"to": "eol", "extend": false} },