Skip to content

Instantly share code, notes, and snippets.

View SooJungChae's full-sized avatar

Soojung Chae SooJungChae

  • South Korea
View GitHub Profile
@SooJungChae
SooJungChae / how-to-set-personal-access-token.md
Last active October 4, 2021 07:37
How to use Personal access token in git
  1. github
  2. settings > Developer settings
  3. Personal access token > Generate new token > Copy and store somewhere that token!
  4. Mac spotlight > "keychain Access.app"
  5. Select git account
  6. Select "Show password" > Enter Mac login password

스크린샷 2021-10-04 오후 4 33 07

  1. Paste copied Personal access token > Save
  2. Test git fetch
@SooJungChae
SooJungChae / README.md
Last active August 19, 2021 06:28
Next.js environment order test

env.local overwrites env.development / env.production overwrites env

env.test overwrites all when test environment (jest, sentry...)


env.local apply values on every environment (except .env.test? test later...)

env.development apply values when npm run dev

@SooJungChae
SooJungChae / problem-chromedriver.md
Created May 16, 2021 12:33
python 프로젝트에서 chromedriver 설치하기

문제상황

python 에서 chromedriver 설치하는 상황.

내 크롬 브라우저 버전과 일치하는 파일을 찾아서 다운받았다. https://chromedriver.chromium.org/downloads

압축을 풀었는데 chromedriver 라는 빈 파일만 나온다. (Unix 실행 파일이 나와야한다.)

@SooJungChae
SooJungChae / BoardTemplate.tsx
Created March 10, 2021 00:29
react-quill custom image loader in functional component
function imageHandler() {
const input = document.createElement('input');
// Open file select window
input.id = 'tempInput';
input.setAttribute('type', 'file');
input.setAttribute('accept', 'image/*');
input.click();
// When file selected
@SooJungChae
SooJungChae / Nuxt middleware
Created April 15, 2019 07:57
Nuxt app.use() requires a middleware function error
Error : app.use() requires a middleware function
app.use 는 어플리케이션 미들웨어를 앱 오브젝트의 인스턴스에 바인드하는 함수다. <br/>
https://expressjs.com/ko/guide/using-middleware.html
How to solve :
@SooJungChae
SooJungChae / nodemailer.md
Last active March 8, 2019 10:12
nodemailer connection error
app.post('/report/mail', function(req, res) {
  const smtpTransport = nodemailer.createTransport({
    host: 'smtp.gmail.com',
    port: 465,
    secure: true,
    auth: {
      type: 'OAuth2',
      user: 'soojung@artiwealth.com',
 clientId: nodemailerConfig.client_id,
@SooJungChae
SooJungChae / NuxtBabelErrorInIE.md
Created February 13, 2019 06:56
Object doesn't support property or method 'find' error in IE

Development: Nuxt

Error: Object doesn't support property or method 'find'

Fix: Add 'babel-es6-polyfill' to nuxt.config.js

  1. Install babel npm install --save babel-es6-polyfill
@SooJungChae
SooJungChae / checkBrowserVersion.js
Created November 5, 2018 01:42
브라우저 체크
function checkIE() {
var agent = navigator.userAgent.toLowerCase();
if ( (navigator.appName == 'Netscape' && agent.indexOf('trident') != -1) || (agent.indexOf("msie") != -1)) {
// ie일 경우
return true;
}else{
// ie가 아닐 경우
return false;
}
}
@SooJungChae
SooJungChae / cs_winform_project_deploy.md
Created October 19, 2018 08:49
C# 윈폼 프로젝트 배포하기
  1. 솔루션 구성을 Release 로 한다. image

  2. [빌드] -> [솔루션 빌드] 한다. image

  3. bin/Release에 .exe 가 만들어진 것을 확인한다. image

@SooJungChae
SooJungChae / csproject_deploy.md
Created October 18, 2018 11:23
C# 프로젝트 배포하는 방법
  1. Visual studio 를 켠다.
  2. 프로젝트를 연다.
  3. 솔루션 탐색기 창에서 프로젝트 명 오른쪽 버튼으로 클릭, image
  4. [게시] 를 누른 후
  5. 원하는 곳에 '파일 시스템'으로 게시한다. image