Thief of Wealth
gitignore not working, gitignore이 작동하지 않을때
개발/Web Programming 2019. 11. 3. 22:22

git rm -r --cached . 해주고 git add . 를 해줘보자

Javascript String vs string
개발/Web Programming 2019. 11. 3. 18:36

Javascript 에서 String도 있고, string도 있는데 String 은 Object형이고, string은 진짜 문자열이다. String형의 객체는 string형처럼 문자열역할을 하지만 성능은 더 낮아질 수 있다. https://aljjabaegi.tistory.com/124

tsconfig.json 만들기
개발/Web Programming 2019. 11. 3. 15:46

npm install -g typescript가 되어 ts가 설치된 상태에서 tsc --init 해주면 성공 근데 이떄 tsconfig.json파일에서 No inputs were found in config file Specified 'include' paths were '["**/*"]' and 'exclude' paths were '[]'. 비슷한 에러가 난다면 tsconfig.json과 같은 레벨에 typescript파일이 없는것이지 참고하도록 하자.=> ts파일 만들고 editor 껏다 키면 에러가 없어짐.

tsc: command not found
개발/Web Programming 2019. 11. 3. 15:43

typescript 를 사용하기위해 tsc명령어를 콘솔에 쳤을때 tsc: command not found 에러가 났다면빠르게 npm install typescript로 설치해주자.

gitignore template
개발/Web Programming 2019. 11. 3. 15:40

# Logs logs*.lognpm-debug.log*yarn-debug.log*yarn-error.log* # Runtime datapids*.pid*.seed*.pid.lock # Directory for instrumented libs generated by jscoverage/JSCoverlib-cov # Coverage directory used by tools like istanbulcoverage # nyc test coverage.nyc_output # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files).grunt # Bower dependency directory (https://bower...

Java Combination, Permuation 순열과 조합
개발/Java 2019. 11. 2. 22:14

- 조합 // print all subsets of the characters in s public static void comb1(String s) { comb1("", s); } // print all subsets of the remaining elements, with given prefix private static void comb1(String prefix, String s) { if (s.length() > 0) { System.out.println(prefix + s.charAt(0)); comb1(prefix + s.charAt(0), s.substring(1)); comb1(prefix, s.substring(1)); } } // alternate implementation publi..

1032 명령 프롬포트
개발/알고리즘 2019. 11. 2. 21:56

문제시작 -> 실행 -> cmd를 쳐보자. 검정 화면이 눈에 보인다. 여기서 dir이라고 치면 그 디렉토리에 있는 서브디렉토리와 파일이 모두 나온다. 이때 원하는 파일을 찾으려면 다음과 같이 하면 된다.dir *.exe라고 치면 확장자가 exe인 파일이 다 나온다. "dir 패턴"과 같이 치면 그 패턴에 맞는 파일만 검색 결과로 나온다. 예를 들어, dir a?b.exe라고 검색하면 파일명의 첫 번째 글자가 a이고, 세 번째 글자가 b이고, 확장자가 exe인 것이 모두 나온다. 이때 두 번째 문자는 아무거나 나와도 된다. 예를 들어, acb.exe, aab.exe, apb.exe가 나온다.이 문제는 검색 결과가 먼저 주어졌을 때, 패턴으로 뭘 쳐야 그 결과가 나오는지를 출력하는 문제이다. 패턴에는 알파벳..

Java Input.txt에서 입력받기
개발/Java 2019. 11. 2. 18:23

import java.io.FileInputStream;import java.io.FileNotFoundException; public class main {public static void main(String[] args) throws FileNotFoundException {System.setIn(new FileInputStream("C:\\Users\주소주소input.txt"));Scanner scan = new Scanner(System.in);int n = Integer.parseInt(scan.nextLine());

profile on loading

Loading...