Skip to content

Instantly share code, notes, and snippets.

View nikpushkarski's full-sized avatar
💭
In case of error: Read-Search-Ask

Nik Pushkarski nikpushkarski

💭
In case of error: Read-Search-Ask
  • Ottawa
  • 04:07 (UTC -04:00)
View GitHub Profile
1. Create a TypeScript/React app with Vite.
2. Define a CounterList component:
1. Define a state variable that initializes with an empty array.
2. Render a button that adds a new number to the array that matches the current length of the array.
3. Render the list of numbers in a bulleted list.
Bonus: Inside CounterList, render another button that adds 1 to the last element of the array.
const bakeryVan = {
destination: 'bakery',
cargo: 5
}
const schoolVan = {
destination: 'school',
cargo: ['Dorothy', 'Zelda', 'Tallulah']
}
@subfuzion
subfuzion / curl.md
Last active February 21, 2026 17:28
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.