• [GitHub] a lock file already exists in the repository, which blocks this operation from completing.

    [GitHub] a lock file already exists in the repository, which blocks this operation from completing.

    a lock file already exists in the repository, which blocks this operation from completing. Git_Hub :: 갑자기 커밋이나 푸쉬 풀 안되고 이러한 메세지 뜰경우 해결방법 1. 일단 뭔가 부딪히는 현상같은거니 lock파일 삭제 걍 해야함! 2. 커밋이든 뭐든 하려는 해당 폴더로 직접 이동 3. 해당 폴더에서 우클릭 - here git bash 로 들어간다. 4. 해당 명령어를 작성해서 lock파일을 그냥 지워버린다. \ rm -rf ./.git/index.lock 5. git desktop 이거나 vs라면 한번 껏다 킨다. 6. 정상 가동되고, 부딫히는 파일은 desktop같은 경우 물어봐준다. 그 중 내가 원하는 방법을 선택하면 ..

  • [Visual Studio 2022] 단축키 모음

    [Visual Studio 2022] 단축키 모음

    Visual Studio 단축키 모음 CTRL / ALT / SHIFT / ENTER / SPACE / ALT +SHIFT + . OR , 글자 크기 확대 OR 축소 SHIFT + ESC 띄운 창 닫기 CTRL +SHIFT + A 새로운 파일 생성 CTRL +SHIFT + A 직접 단축키 설정하기 도구 -> 옵션 -> 키보드 -> 원하는 기능 단축키 설정

  • Defaultdict, dict  sort  딕셔너리 정렬방법

    Defaultdict, dict sort 딕셔너리 정렬방법

    sorted(dict) 을 하게 되면 해당 딕셔너리의 키값들만 가져와서 정렬해준다. test = {'yellow': [1, 3], 'blue': [2, 4], 'red': [1]} print(test) print(sorted(test)) print(sorted(test.items())) print(dict(sorted(test.items()))) >>> {'yellow': [1, 3], 'blue': [2, 4], 'red': [1]} >>> ['blue', 'red', 'yellow'] >>> [('blue', [2, 4]), ('red', [1]), ('yellow', [1, 3])] >>> {'blue': [2, 4], 'red': [1], 'yellow': [1, 3]} 키를 기준으로 딕셔너리를 ..

  • [VS] Cannot make a static reference to the non-static method ..... from the type ... Java(603979977)

    [VS] Cannot make a static reference to the non-static method ..... from the type ... Java(603979977)

    Cannot make a static reference to the non-static method ㅁㅁㅁ from the type ㅁㅁㅁJava(603979977) static 으로 동일 하게 맞춰주면된다. 코드로 보면 이해된다. public class Compressed { public static void main(String[] args) { System.out.println("Hello"); String show = "abbccccc"; System.out.println(compress(show)); } String compress(String str) { StringBuilder compressed = new StringBuilder(); int countConsecutive = 0; for ..

  • Shortcut 단축키 모음

    Shortcut 단축키 모음

    ShortCut - Android Studio 현재파일 구조보기 CTRL + F12 클래스 찾기 CTRL + e 최근 편집한 파일 열기(리스트) CTRL + n Override/Implement메서드 CTRL + o / CTRL + i 뭔가 필요한 함수추가 (귀찮을때) ALT + Insert 문서의 글자크기 줄이고 늘이기 (키맵설정) SHIFT + ALT + - / SHIFT + ALT + = 한 줄 복사 CTRL + d 프로젝트 창 열고 닫기 ALT +1 여러줄 선택 및 편집 ALT+SHIFT + click(커서한개씩) 여러줄 드래그로 편집 ALT +drag 변수명 한번에 바꾸기 SHIFT + F6 Run CTRL + r Run Stop CTRL + F2 애뮬레이터 최소화 SHIFT + ESC 검색창 ..