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: '[email protected]',
 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