Skip to content

Instantly share code, notes, and snippets.

View JHSeo-git's full-sized avatar

JHSeo JHSeo-git

View GitHub Profile
@JHSeo-git
JHSeo-git / markdown-render-example.md
Created April 6, 2021 13:18
markdown render example

Advertisement :)

  • pica - high quality and fast image resize in browser.
  • babelfish - developer friendly i18n with plurals support and easy syntax.

You will like those projects!

@JHSeo-git
JHSeo-git / craco.config.js
Created March 8, 2021 12:18
cra craco alias setting with typescript
const CracoAlias = require('craco-alias');
module.exports = {
plugins: [
{
plugin: CracoAlias,
options: {
source: 'tsconfig',
baseUrl: '.',
tsConfigPath: 'tsconfig.paths.json',
@JHSeo-git
JHSeo-git / emotion-react-typescript-babel-cssprop.md
Last active February 22, 2021 08:35
@emotion/react cssprop babel, typescript

tsconfig.json

{
  "compilerOptions": {
    "jsxImportSource": "@emotion/react"
  }
}

babelrc

@JHSeo-git
JHSeo-git / material-palette.js
Created January 30, 2021 07:19
material palette js
export const red = {
50: '#ffebee',
100: '#ffcdd2',
200: '#ef9a9a',
300: '#e57373',
400: '#ef5350',
500: '#f44336',
600: '#e53935',
700: '#d32f2f',
800: '#c62828',
@JHSeo-git
JHSeo-git / git-ignore-file-already-existed.sh
Created December 14, 2020 04:21
Git ignore file already existed
// https://stackoverflow.com/questions/25436312/gitignore-not-working/25436481
git rm -rf --cached .
git add .
@JHSeo-git
JHSeo-git / saga-yield-call-return.ts
Last active December 9, 2020 13:50
Adjust typescript for redux-saga yield call type
type StripEffects<T> = T extends IterableIterator<infer E>
? E extends Effect | SimpleEffect<any, any>
? never
: E
: never;
type DecideReturn<T> = T extends Promise<infer R>
? R // If it's a promise, return the promised type.
: T extends IterableIterator<any>
? StripEffects<T> // If it's a generator, strip any effects to get the return type.
@JHSeo-git
JHSeo-git / prettier-all-files.sh
Last active December 9, 2020 13:51
Adjust prettier for specific(or directory) files
npx prettier --write .
@JHSeo-git
JHSeo-git / I'm a night 🦉
Last active June 8, 2024 00:18
Daily Commit
🌞 Morning 20 commits █░░░░░░░░░░░░░░░░░░░░ 5.3%
🌆 Daytime 66 commits ███▋░░░░░░░░░░░░░░░░░ 17.6%
🌃 Evening 271 commits ███████████████▏░░░░░ 72.3%
🌙 Night 18 commits █░░░░░░░░░░░░░░░░░░░░ 4.8%