본문 바로가기

전체 글683

유용한 Visual Studio Code 단축키 Show Command Palette Ctrl + Shift + P, F1 Go To Definition F12 Go Back Alt + ← Go Forward Alt + → Show Terminal Ctrl + ' (quote) New Terminal Ctrl + Shift + ' (quote) Toggle Line Comment Ctrl + / Toggle Block Comment Shift + Alt + A 2020. 12. 28.
What is the purpose of a question mark after a type (for example: int? myVariable)? tinyurl.com/y3eoyo5h What is the purpose of a question mark after a type (for example: int? myVariable)? Typically the main use of the question mark is for the conditional, x ? "yes" : "no". But I have seen another use for it but can't find an explanation of this use of the ? operator, for example. ... stackoverflow.com It means that the value type in question is a nullable type 2020. 12. 9.
git 로그를 그래픽하게 매번 찾기 귀찮은 작업이라 메모! git config --global -e 아래 내용 추가 [alias] lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(re.. 2020. 12. 1.
윈도우 터미널에서 시작디렉토리 지정하기 터미널에서 우분투를 시작하면 윈도우 홈디렉토리로 시작한다. 리눅스 홈디렉토리로 지정하려면 아래 우분투 18.04의 시작을 설정을 참고하자. { "guid": "{c6eaf9f4-32a7-5fdc-b5cf-066e43243e40}", "hidden": false, "name": "Ubuntu-18.04", "source": "Windows.Terminal.Wsl", "startingDirectory": "//wsl$/Ubuntu-18.04/home/계정아이디/" }, 2020. 10. 21.
파워쉘 익숙하지 않은 powershell을 사용해 보기로 함. Restart-Computer history docker inspect 168f55fbe1fd | Select-String -pattern IPAddress 명령어 도움말 확인 help 2020. 10. 13.
우분투18.04에서 gunicorn으로 flask앱 실행 서버 설치 후 패키지 정보 업데이트와 업그레이드 진행 sudo apt update && sudo apt upgrade -y 가상환경을 위한 패키지 준비 sudo apt install python3-pip python3-dev build-essential libssl-dev libffi-dev python3-setuptools sudo apt install python3-venv 플라스크 프로젝트 다운로드 git clone https://github.com//.git 프로젝트에 가상환경 생성 cd / python3 -m venv venv source venv/bin/activate (venv)pip install wheel (venv)pip install gunicorn flask 하단에 호스트 속성 추가.. 2020. 9. 24.
파이썬에 mariadb 패키지 가져오기 sudo apt update # 저장소 추가 sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8 sudo add-apt-repository "deb [arch=amd64,arm64,ppc64el] http://mariadb.mirror.liquidtelecom.com/repo/10.4/ubuntu $(lsb_release -cs) main" sudo apt update # 개발환경 패키지 설치 sudo apt install -y build-essential libssl-dev libffi-dev python3-dev # 의존성 패키지 설치 sudo apt install -y libmariadb3 .. 2020. 9. 14.
커맨드 창에서 깃 사용 관련 깃에서 로그확인시 한글이 깨져보이는 문제는 아래 설정으로 해결 set LC_ALL=ko_KR.UTF-8 2020. 8. 28.
_와 __의 차이 아래 링크에는 파이썬에서 _의 사용에 대해 잘 설명되어 있다. 1. 인터프리터에서 사용되는 경우 2. 값을 무시하고 싶은 경우 3. 특별한 의미의 네이밍을 하는 경우 4. 국제화(i18n)/지역화(l10n) 함수로 사용되는 경우 5. 숫자 리터럴값의 자릿수 구분을 위한 구분자로써 사용할 때 꼭 한 번 방문해 읽어 보시길... mingrammer.com/underscore-in-python/ 2020. 8. 27.