Skip to content

Instantly share code, notes, and snippets.

@micahgodbolt
micahgodbolt / wsl_install_node.md
Last active December 22, 2022 09:37
WSL install Node

The apt-get version of node is incredibly old, and installing a new copy is a bit of a runaround.

So here's how you can use NVM to quickly get a fresh copy of Node on your new Bash on Windows install

$ touch ~/.bashrc
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
// restart bash
$ nvm install --lts
@wesbos
wesbos / async-await.js
Created February 22, 2017 14:02
Simple Async/Await Example
// 🔥 Node 7.6 has async/await! Here is a quick run down on how async/await works
const axios = require('axios'); // promised based requests - like fetch()
function getCoffee() {
return new Promise(resolve => {
setTimeout(() => resolve('☕'), 2000); // it takes 2 seconds to make coffee
});
}
@LeoHeo
LeoHeo / var-let-const.md
Last active December 15, 2024 01:07
javascript var, let, const 차이점

var, let, const 차이점은?

  • varfunction-scoped이고, let, constblock-scoped입니다.

  • function-scopedblock-scoped가 무슨말이냐?

var(function-scoped)

jsfiddle 참고주소

@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active May 10, 2025 04:34
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@ianychoi
ianychoi / pycon2017kr-sample.rst
Created August 13, 2017 02:22
Let's learn rst - Pycon 2017 KR

[제목 부분: "=" 개수를 맞춥니다]

[부제목 부분: "-" 개수를 맞춥니다]

쓰고 싶은 내용을 텍스트로 편하게 적으면 됩니다. 다음 줄로 바꾸어 적더라도 계속 이어집니다.

@nomadekr
nomadekr / README.md
Last active January 28, 2020 15:02
AWS chalice 에서 jinja2 템플릿 활용하기

AWS chalice 에서 jinja2 템플릿 활용하기

디렉토리 구조

  • app.py
  • requirements.txt
  • chalicelib/
    • tempaltes/
      • index.html

git rebase 활용 방법

git rebase --help git-rebase - Reapply commits on top of another base tip

1. commit log 의 중요성

commit log 를 잘 작성하는 것은 협업 또는 본인 스스로 가독성 높은 코드를 작성하기 위한 많은 방법들 중 하나.

2. 원자적 커밋 (Atomic Commits with Git)

하나의 커밋에는 더이상 분리 할 수 없는 최소한의 코드 변경만 포함한다.

import requests
import time
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
ID = 'yout id'
PASS = 'your pass'
MemberNo = "member no found from Fiddler"
@philoskim
philoskim / vscode-on-ubuntu.adoc
Last active April 26, 2025 13:42
Ubuntu에서 Visual Studio Code 한글 입력 안되는 현상 해결법

Ubuntu에서 Visual Studio Code 한글 입력 안되는 현상 해결법

Ubuntu 19.10에서 Visual Studio Code 사용 중 한영 전환키를 누르고 한글을 입력하려 했더니, 한글 입력이 안되고 영어만 계속 입력되는 현상을 발견했다. 그래서 인터넷을 검색해 봤더니 snap 형식의 Visual Studio Code를 설치한 경우에, Ubuntu의 입력기인 IBus와 충돌해서 일어나는 현상이라고 한다. 그런데 .deb 형식의 Visual Studio Code를 설치한 경우에는 그런 문제가 없다는 사실을 알게 되어, 설치해 봤더니 한글 입력이 정상적으로 이루어지는 것을 확인했다. 그래서 같은 문제를 겪는 사람들을 위해 이 해결법을 공유하고자 한다.

  • 먼저 이미 설치되어 있는 snap 형식의 Visual Studio Code를 제거한다.