Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Dillon Jang DillonMemo

🏠
Working from home
View GitHub Profile
@DillonMemo
DillonMemo / javascript.js
Created Apr 7, 2021
Difference javascript and typescript
View javascript.js
/** example */
function addition(a, b) {
const result = a + b;
return console.log(typeof result, result);
}
const num1 = 10;
const num2 = "20";
addition(num1, num2); // log: string 1020
@DillonMemo
DillonMemo / README.md
Last active Feb 16, 2021
finally NestJS configure practice
View README.md
NestJS
  ├─src
  │  ├─users  
  │  │  ├─dtos
  │  │  │  └─create-user.dto.ts
  │  │  ├─entities
  │  │  │  └─users.entitiy.ts
  │  │  ├─users.module.ts  
 │ │ └─users.resolver.ts
@DillonMemo
DillonMemo / README.md
Last active Feb 16, 2021
set NestJS global scoped pipes
View README.md
NestJS
  ├─src
  │  ├─users  
  │  │  ├─users.module.ts  
  │  │  └─users.resolver.ts
  │  ├─app.module.ts
  │  └─main.ts
  ├─test
 │ └─...test files
@DillonMemo
DillonMemo / README.md
Last active Feb 16, 2021
NestJS Configure Practice with TypeORM
View README.md
NestJS
  ├─src
  │  ├─users  
  │  │  ├─users.module.ts  
  │  │  └─users.resolver.ts
  │  ├─app.module.ts
  │  └─main.ts
  ├─test
 │ └─...test files
@DillonMemo
DillonMemo / README.md
Last active Feb 16, 2021
Apply resolver to NestJS configure practice
View README.md
NestJS
  ├─src
  │  ├─users  
  │  │  ├─users.module.ts  
  │  │  └─users.resolver.ts
  │  ├─app.module.ts
  │  └─main.ts
  ├─test
 │ └─...test files
@DillonMemo
DillonMemo / README.md
Last active Feb 16, 2021
NestJS Configure Practice
View README.md
NestJS
  ├─src
  │  ├─app.module.ts
  │  ├─main.ts
  ├─test
  │  └─...test files
  └─eslint,env,prettier etc config files
View convertPricenumber.js
/**
* Test Data
* const DATA = [
* ['오백삼십조칠천팔백구십만천오백삼십구', '삼조사천이만삼천구'],
* ['육십사억삼천십팔만칠천육백구', '사십삼'],
* ['구백육십조칠천억팔천백삼십이만칠천일', '사십삼조오천이백억육천구백십만일'],
* ['이천구백육십조천오백칠십만삼천구백구십', '삼천사백오십조일억이천만육백사십삼'],
* ['사십오억삼천육십만오백구십', '칠십억천이백삼십오만칠천구십이'],
* ['천백십일', '구천오백구십구'],
* ['오억사천', '백십일'],