Skip to content

Instantly share code, notes, and snippets.

View nicanordlc's full-sized avatar
👋
😬 👋

Nicanor Alexander de la Cruz Caba nicanordlc

👋
😬 👋
View GitHub Profile
@nicanordlc
nicanordlc / suspense.tsx
Last active February 24, 2024 06:10 — forked from yusukebe/suspense.tsx
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 } }>()
@nicanordlc
nicanordlc / 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.

@nicanordlc
nicanordlc / 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