Skip to content

Instantly share code, notes, and snippets.

View cabaalexander's full-sized avatar
👋
😬 👋

Alexander Caba (Nica) cabaalexander

👋
😬 👋
  • Santiago, DR
View GitHub Profile
import { Hono } from 'hono'
import { jsxRenderer } from 'hono/jsx-renderer'
import { Suspense } from 'hono/jsx/streaming'
const app = new Hono()
const Component = async () => {
const res = await fetch('https://ramen-api.dev/shops/yoshimuraya')
await new Promise((r) => setTimeout(r, 8000)) // <-- delay here
const data = await res.json<{ shop: { name: string } }>()
@cabaalexander
cabaalexander / curl.md
Created July 9, 2018 21:12 — forked from subfuzion/curl.md
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.

@cabaalexander
cabaalexander / tmux.md
Created December 30, 2017 08:12 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a