Skip to content

Instantly share code, notes, and snippets.

View jihchi's full-sized avatar
🦀

Jihchi Lee jihchi

🦀
View GitHub Profile
{
"basics": {
"name": "Thomas Edison",
"label": "Inventor and Businessman",
"picture": "https://example.com/photo.jpg",
"email": "thomas.edison@example.com",
"phone": "(123) 456-7890",
"url": "https://thomasedison.com",
"summary": "Prolific inventor and businessman known for developing many devices that greatly influenced life around the world, including the phonograph, the motion picture camera, and the electric light bulb.",
"location": {
@jihchi
jihchi / _README.md
Last active December 16, 2025 17:05
Minimum reproducible steps for issue https://github.com/denoland/deno/issues/31595

Prerequisite: Deno v2

deno run https://gist.github.com/jihchi/49f89035b39445e99e2a7473e754665a/raw/solve.ts

Prerequisite: Deno v2

deno run https://gist.github.com/jihchi/9cac764592a0d59d9dde89a1bf88f0a2/raw/solve.ts

Deno v2.5.3

deno run https://gist.github.com/jihchi/2d993c308031cf848c404acd06bf0f8a/raw/solve.ts
@jihchi
jihchi / datefns.ts
Last active February 11, 2025 10:32
import { TZDate } from 'npm:@date-fns/tz';
import { UTCDate } from "npm:@date-fns/utc";
import * as DF from 'npm:date-fns';
console.log('Use `TZDate` or `UTCDate` for date construction. All `date-fn` utilities are available in `DF` (e.g. `DF.format()`)');
console.log('TZCDate: https://github.com/date-fns/tz');
console.log('UTCDate: https://github.com/date-fns/utc');
console.log('`date-fn` utilities: https://date-fns.org/docs/Getting-Started');
@jihchi
jihchi / Dockerfile
Created September 24, 2024 18:09
Docker Image: Ubuntu 22.04 + fix8 Community Edition 1.4.3
FROM ubuntu:22.04
RUN apt-get update \
&& apt-get -y --no-install-recommends install \
wget ca-certificates \
build-essential g++ libtool autotools-dev automake \
libpoco-dev
WORKDIR /tmp

Pros

  • Usage is simple, you could directly access the config via process.env.NEXT_PUBLIC_*, for example:
// call-site, agents.js
const restaurantApi = axios.createConfig({
 baseUrl: process.env.NEXT_PUBLIC_RESTAURANT_API_URI,
@jihchi
jihchi / df
Last active December 5, 2020 01:41
123
@jihchi
jihchi / README.md
Last active February 22, 2020 12:21
curl -sSL https://git.io/Jv0mR | sudo bash