day.js

Monday of last week

Sunday of last week

Monday of two weeks prior

First day of last month

Last day of last month

First day of two months prior


2021.09.13

구글 로그인 등 strapi가 제공하는 로그인을 할 경우, 링크보고 따라하면 됨.

https://strapi.io/documentation/developer-docs/latest/development/plugins/users-permissions.html#providers

Kakao Oauth

https://developers.kakao.com/ 들어가서 어플리케이션 생성

  1. 요약 정보 ⇒ 앱 키 ⇒ REST API 키
  2. 카카오 로그인 ⇒ 보안 ⇒ Client Secret

⇒ 이 두 키를 발급 받아 localhost:1337의 provider 부분에 나중에 넣어줘야 됨!

Redirect url은 http://localhost:1337/connect/kakao/callback 로 등록

Frontend


MySQL 5.6

To create database with specific character-set and collate,

Database

character-set= utf8mb4;

collate=utf8mb4_unicode_ci;


Froala Editor has an error that Korean alphabets are broken but its support replied as “ We do not have any known/pending issues submitted to the dev-team related to the Korean language.” Testing ‘Toast UI editor’ whether it can be applied instead.

TOAST UI Editor (TUI)

  • provides Markdown mode and…


TIL 2021.07.02

Strapi

A headless CMS(Content Management System) for Nodejs to build and develop APIs, and its content super-fast and accessible in a friendly UI.

After I try Strapi for my company’s project, this will be the best when you need to get dynamic data and easy to build Database.

GraphQL & Next.js

  • HOC
https://github.com/vercel/next.js/tree/canary/examples/with-apollo
https://github.com/vercel/next.js/tree/canary/examples/with-apollo

Mongoose


TIL 2021.05.20

이름이 없는 동물의 아이디

ANIMAL_INS 테이블은 동물 보호소에 들어온 동물의 정보를 담은 테이블입니다. ANIMAL_INS 테이블 구조는 다음과 같으며, ANIMAL_ID, ANIMAL_TYPE, DATETIME, INTAKE_CONDITION, NAME, SEX_UPON_INTAKE는 각각 동물의 아이디, 생물 종, 보호 시작일 …


TIL 2021.05.05

1710. Maximum Units on a Truck

You are assigned to put some amount of boxes onto one truck. You are given a 2D array , where :

  • is the number of boxes of type .
  • is the number of units in each box of the…

TIL 2021.05.02

1217. Minimum Cost to Move Chips to The Same Position

We have chips, where the position of the chip is .

We need to move all the chips to the same position. In one step, we can change the position of the chip from to:


TIL 2021.05.01

1207. Unique Number of Occurrences

Given an array of integers , write a function that returns if and only if the number of occurrences of each value in the array is unique.

Example 1:


TIL 2021.04.29

561. Array Partition I

Given an integer array of integers, group these integers into pairs such that the sum of for all is maximized. Return the maximized sum.

Example 1:

Joo Hee Kim

Consistency achieves everything https://github.com/paigekim29

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store