전체 글68 [JS] 연결리스트 Linked list 추상적 자료형인 리스트를 구현한 자료구조로, Linked List 라는 말 그대로 어떤 데이터 덩어리를 저장할 때 그 다음 순서의 자료가 있는 위치를 데이터에 포함시키는 방식으로 자료를 저장. 단일 연결리스트 Singly Linked Lists class Node { constructor(val) { this.val = val; this.next = null; } } class SinglyLinkedList { constructor() { this.head = null; this.tail = null; this.length = 0; } push(val) { //새로운 노드 생성 let newNode = new Node(val); //현재 연결리스트에 head가 비어있다면 if (!this.head) { .. 2022. 12. 16. build하고나서 Image 가 안나왔던 이유 nextjs Image error 로컬이미지를 이용해서 메인 사진을 nextjs Image를 통해 최적화하여 구현했는데 build 후에 사진을 가져오지 못한다. 사진파일명이 한글일 경우 build 후 사진을 가져오지 못했다. 2022. 9. 23. 폴더명이 "ud"로 시작하면 생기는 에러 ? create-next-app 유데미 nextjs 강의를 듣기위해 udemy폴더안에 npx create-next-app 설치 후 npm run dev 했는데 에러가 났다 error - ./node_modules/next/dist/client/dev/amp-dev.js 아직 공부하는단계라 왜 폴더명에 ud가 들어가면 에러가 나는지 파고들지는 못했다. 참고) https://lightrun.com/answers/vercel-next-js-causes-an-error-when-any-folder-in-the-path-starts-with-ud Causes an error when any folder in the path starts with "ud" Lightrun Answers. Where developers land when they g.. 2022. 9. 5. Git history에서 .env 파일 제거하기 .env 파일을 깃에 푸시하고 나서 .gitignore에 저장해 파이어 베이스 apikey가 깃헙에 올라가버렸다. 혼자 독학하는 중이라 env apikey 이런 환경변수 관리 공부를 소홀히 하고있었다. git에서 .env 삭제하기 git rm -r --cached .env 삭제하고 푸쉬했더니 깃헙에서 .env는 없어졌지만 commit history 에 나의 env가 그대로 노출되고있었다. 찾아보니 repository 삭제하고 다시 올리라는 글들 뿐이였는데 나의 소즁한 잔디가 아쉬워서 찾아보았다 파일을 완전히 제거하려면 다음 명령을 사용한다. git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch .env" HEAD 그동안의 히스토리에.. 2022. 6. 20. 이전 1 ··· 9 10 11 12 13 14 15 ··· 17 다음