본문 바로가기
728x90

Bioinformatics &c/Linux & Python4

[Linux] guide_ssh [ Jupyter notebook 실행 ] Bash 실행 > cd target_folder > jupyter notebook > connect by Internet Jupiter 단축키 설명 > https://kkokkilkon.tistory.com/151 [ bash로 macpro 연결하기 ] Macpro1: ssh -p 20022 xxx@xxx.iptime.org tmux new -s user > 처음에만 만들면 됨. tmux attach -t user > 들어가는것 ctrl+B > tmux 모든 명령의 기본 +d : 나가기 +c : create window +n : next window +p : previous window +& : kill window ## warning message ## FYI.. 2022. 12. 28.
[Linux] install_ggrep ggrep install 1) brew install grep 2) vi ~/.bashrc - 파일 생성하기 3) PATH="[설치된경로]:$PATH" - 1번에서 나온 PATH 입력하기 4) 재부팅을 안하고 바로 적용시키려면 파일에 PATH 내용추가한 다음에 source ~/.bashrc 라고 다시 한번 해주기 2022. 12. 28.
[GitHub] Sourcetree를 이용하여 GitHub에 업로드 하는법 GitHub upload by Sourcetree [ GitHub - Sourcetree connection ] github에서 repository를 먼저 만든다. (나중에 .gitignore 파일을 생성하기 어렵기 때문에 처음에 repository를 만들 때 아무거나 클릭하고 일단 생성한다.) 생성한 Github repository URL을 복사한다. Sourcetree를 열고 NEW에 Clone from URL 클릭한다. (Sourcetree 가입은 미리 해두기!) Source URL에 복사한 Github repository URL을 붙여넣는다. 자신의 finder에 빈 폴더를 만들고 destination path로 지정한다. Clone 누르면 끝!경로로 무시하고 싶은 파일을 지정하려면 그 파일이 있.. 2022. 12. 28.
[Python] Q3. Largest prime factor Euler라는 사이트에서는 Python 예제를 많이 다루고 있어요! 저는 그 중에서 3번 문제를 풀어봤습니다. [ Question 3 ] Multiples of 3 and 5 If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3 or 5 below 1000. [ Answer ] def smallest_prime_factor(x): factor = 1 for candidate_factor in range (2,int(x**0.5)+1): if x%candidat.. 2022. 12. 28.
728x90