본문 바로가기

Git 원격 저장소 주소 변경하는 방법 이슈 상황 프로젝트의 원격 저장소가 A에서 B로 변경되었다. 이에 따라, 원격 저장소 주소를 변경 적용하고자 한다. 해결 방법 1. 프로젝트가 위치한 폴더를 열고, 우클릭 하여 'Git Bash Here' 버튼을 누른다. 2. 아래 명령어를 순서대로 입력한다. $ git pull $ git add --all warning: in the working copy of '.project', LF will be replaced by CRLF the next time Git touches it warning: in the working copy of 'bin/log4j2.xml', LF will be replaced by CRLF the next time Git touches it warning: in the w.. 더보기
[백준/Java] 10807번: 개수 세기 import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int count = scan.nextInt(); List numList = new ArrayList(); for (int i = 0; i < count; i++) { numList.add(scan.nextInt()); } int specialNum = scan.nextInt(); scan.close(); int specialNumCnt = 0; for (int num : numList) { .. 더보기
[Vue+Bootstrap] Vue 프로젝트에서 cdn 방식으로 Bootstrap 라이브러리 import 하는 방법 1. 구글 검색창에 'cdnjs bootstrap' 검색 1-1. 아래 URL 접속 bootstrap - Libraries - cdnjs - The #1 free and open source CDN built to make life easier for developers The most popular front-end framework for developing responsive, mobile first projects on the web. - Simple. Fast. Reliable. Content delivery at its finest. cdnjs is a free and open-source CDN service trusted by over 12.5% of all websites, serving.. 더보기
[Vue] Vue 3.x 버전 설치 및 환경 세팅 1. Node.js 설치 - Node.js 는 npm 을 사용하기 위해 설치하는 것 - 최신 버전으로 설치할 것 (최신 or 최신 LTS 버전 아니면 에러남) https://nodejs.org/ko/download/ 다운로드 | Node.js Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. nodejs.org 2. VSCode 설치 1) 메뉴바에서 Terminal > New Terminal 진입 npm install -g @vue/cli 2) Extension 설치 - Vetur 설치 - HTML CSS Support 설치 - Vue 3 Snippets 설치 여기까지 완료 되었다면 이제 뷰 프로젝트 생성을 시작해보자. 1... 더보기
[백준/Java] 다른 사람(맞힌 사람) 코드 보는 방법 풀고자 하는 문제의 다른 사람(맞힌 사람) 코드 보는 방법은 다음과 같다. 예) 2438번 문제 1. 맞힌 사람 클릭한다. 2. 원하는 언어를 선택한다. 예) Java 3. 언어 컬럼에서 파란 글씨로 적힌 Java 8을 클릭한다. 4. 코드를 확인한다. 끝 더보기
[백준/Java] 2439번: 별 찍기 - 2 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int cnt = scan.nextInt(); String str = " "; for (int i = 1; i = 1; j--) { if (j == i) str = "*"; System.out.print(str); } System.out.println(); } } } Scanner 대신 BufferedReader 를 사용하여, 소요시간 0.1초를 더 단축해보자 import java.io.*; public class Main { public static void main(String... 더보기
[백준/Java] 2438번: 별 찍기 - 1 30초 만에 풀기 도오전~? import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int cnt = scan.nextInt(); for (int i = 0; i < cnt; i++) { for (int j = 0; j 더보기
[백준/Java] 11022번: A+B - 8 노가다 문제..ㅎ import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int cnt = scan.nextInt(); for (int i = 1; i 더보기