분류 전체보기(864)
-
Javascript에서 null과 undefined 체크 방법
다른 동료가 코드 리뷰 도중에 null 체크를 굳이 해야하는지, undefined만 체크하는 것으로 충분하지 않은지 의견을 내었다. 사실 이 둘은 다르게 넘어올 수있기 때문에 번거롭더라도 null과 undefined를 모두 체크하는 것 좋지만, 다수의 변수값을 한번에 체크할 때는 코드가 지저분해지는 문제가 있을 수 있다. 그래서 찾아보니 다음과 같은 아주 좋은 방법이 있다. 물론 0이 넘어오지 않는 경우에만 해당될 듯. https://stackoverflow.com/questions/2559318/how-to-check-for-an-undefined-or-null-variable-in-javascript How to check for an undefined or null variable in JavaSc..
2019.06.17 -
Python에서 버전 비교 로직
http://codingdojang.com/scode/493 코딩도장 프로그래밍 문제풀이를 통해서 코딩 실력을 수련 codingdojang.com from itertools import zip_longest def compare(left, right): left_vars = map(int, left.split('.')) right_vars = map(int, right.split('.')) for a, b in zip_longest(left_vars, right_vars, fillvalue = 0): if a > b: return '>' elif a
2019.06.17 -
Vue.js의 Nuxt.js 프레임워크 개발 관련 자료 모음
Vue.js의 프레임워크 중에 하나인 Nuxt.js를 사용하여 개발하는데 필요한 레퍼런스들이다. 다른건 Vue.js와 별 차이가 없었지만 Router와 Programmatic Navigation 부분이 조금 달라서 삽질 좀 했다. https://kdydesign.github.io/2019/04/10/nuxtjs-tutorial/ Nuxt.js 개념부터 설치까지 빠르게 배우기 Vue Application을 만들기 위한 강력한 Framework 인 Nuxt.js에 대해 알아보자. Nuxt.js는 Vue.js 응용 프로그램을 만들기 위한 Framework이며, Vue.js Application을 좀 더 손쉽게 만들 수 있으며 Server-Side-Rendering을 지원한다. kdydesign.github.i..
2019.06.11 -
알고리즘/데이터구조/디자인패턴 관련 자료
* 알고리즘 연습을 위해 좋은 사이트 https://www.hackerrank.com/ HackerRank Join over 5 million developers. Practice coding, prepare for interviews, and get hired. www.hackerrank.com https://www.geeksforgeeks.org/ GeeksforGeeks | A computer science portal for geeks Featured Article Data Structures and Algorithms are one of the most important skills that every computer science student must have. It is often seen..
2019.06.10 -
최근 삽질 관련 기록 - 데비안&몽고디비, 도커배포
1. 데비안 리눅스에 MongoDB 설치 후 서비스 실행 안됨 - 해결 못하고 fork로 백그라운드 실행 시킴 https://stackoverflow.com/questions/15185012/mongodb-fork-in-windows mongodb fork in windows I have seen on tutorials that they use --fork as parameter of mongod. But when I try to do so, it says unknown option --fork. So how to --fork mongodb on windows? stackoverflow.com https://stackoverflow.com/questions/26852138/sudo-service-mong..
2019.04.15 -
Gitlab CI의 Test 프로세스에서 Docker에 몽고디비 설치
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-debian/ Install MongoDB Community Edition on Debian — MongoDB Manual docs.mongodb.com 데비안 Docker 이미지에서 몽고디비를 설치한 다음 Cypress와 Python으로 통합 테스트를 하고자 몽고디비 오피셜 페이지의 Debian 항목을 참고하였다. 1번 문제 : apt-get update를 하면 항상 같은 부분에서 에러 발생 https://unix.stackexchange.com/questions/508724/failed-to-fetch-jessie-backports-repository/508857 Failed to fetch j..
2019.04.05