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;

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 boxTypes, where boxTypes[i] = [numberOfBoxesi, numberOfUnitsPerBoxi]:

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

TIL 2021.04.29

561. Array Partition I

Given an integer array nums of 2n integers, group these integers into n pairs (a1, b1), (a2, b2), ..., (an, bn) such that the sum of min(ai, bi) for all i 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