Skip to content

Instantly share code, notes, and snippets.

View gseok's full-sized avatar
:octocat:
Happy

gyeongseok.seo gseok

:octocat:
Happy
View GitHub Profile
@gseok
gseok / client-logger.ts
Created February 17, 2022 11:48
심플한 js 클라이언트향 커스텀 logger
// formatDate helperz
export const DAY_WEEK = ['일', '월', '화', '수', '목', '금', '토'];
export const WEEK_NUMBER = 7;
export const HOURS = 60 * 60 * 1000;
export const MINUTES = 60 * 1000;
export const twoDigits = (num: number): string => {
return num < 10 ? `0${num}` : `${num}`;
};
/*
@gseok
gseok / JotaiAtomDebug.ts
Created September 5, 2024 00:26
심플한 jotai debug 로직
import {
myAtom1,
myAtom2,
myAtom3
} from '@states/your.atoms';
import { Atom, atom, useAtomValue, useStore } from 'jotai';
import { useEffect } from 'react';
type DictType<T = unknown> = Record<string, T>;