본문 바로가기

Programming

(189)
postgre and pg www.postgresql.org/download/linux/debian/ PostgreSQL: Linux downloads (Debian) Linux downloads (Debian) PostgreSQL is available in all Debian versions by default. However, the stable versions of Debians "snapshot" a specific version of PostgreSQL that is then supported throughout the lifetime of that Debian version. The PostgreSQL pr www.postgresql.org wiki.postgresql.org/wiki/First_steps First ..
su 초기 비번 설정 linuxize.com/post/wget-command-examples/ Wget Command in Linux with Examples GNU Wget is a command-line utility for downloading files from the web. linuxize.com sudo passwd 명령어를 통해 root 비번을 설정 sudo passwd sudo passwd root 다름 리부트 해야함 -- www.postgresql.org/download/linux/debian/ PostgreSQL: Linux downloads (Debian) Linux downloads (Debian) PostgreSQL is available in all Debian versions by default...
useLayoutEffect 사용 kentcdodds.com/blog/useeffect-vs-uselayouteffect useEffect vs useLayoutEffect The simple rules for when to use each. kentcdodds.com 스크롤 문제때문에 useLayoutEffect를 사용함 근데 useLayoutEffect(() => { window.scrollTo(0, 0); }, []); 이게 만약 checkbox 클릭할때마다 또 렌더되니깐 계속 실행된다. 그래서 빈 리스트를 넣어줘야 초기 한번만 실행된다.
Download golang in linux www.cyberciti.biz/faq/how-to-install-gol-ang-on-ubuntu-linux/ How to install Go [golang] on Ubuntu Linux - nixCraft Explains how to install the latest Go (Golang) version on Ubuntu Linux and write your first "Hello World" app. www.cyberciti.biz MEthod 3
gcp 해보기 (ce 배포) kooku.netlify.app/cloud/(gcp)-vm-%EC%9D%B8%EC%8A%A4%ED%84%B4%EC%8A%A4-%EC%83%9D%EC%84%B1-&-react-%EB%B0%B0%ED%8F%AC/ (GCP) VM 인스턴스 생성 & React 배포 1. VM 인스턴스 설치 & 실행 GCP에 들어간 후 새로운 프로젝트를 만들어 줍니다. 프로젝트명은 TestServer로 하겠습니다. 프로젝트를 만든 후 만든 프로젝트 페이지로 넘어갑니다. 새로 만든 프로젝트 kooku.netlify.app 이거 보고 하니깐 그냥 됨.
9093 ReadString, ReadLine, Fprintf 9093 www.acmicpc.net/problem/9093 9093번: 단어 뒤집기 첫째 줄에 테스트 케이스의 개수 T가 주어진다. 각 테스트 케이스는 한 줄로 이루어져 있으며, 문장이 하나 주어진다. 단어의 길이는 최대 20, 문장의 길이는 최대 1000이다. 단어와 단어 사이에는 www.acmicpc.net 코드 input, _ := reader.ReadString('\n') // input = strings.TrimSpace(input) for i, s := range input { fmt.Fprintf(writer, "%d: %s\n", i, string(s)) } writer.Flush() input, _, _ := reader.ReadLine() for i, s := range input {..
10828 bufio.NewReader Fscanf 10828 www.acmicpc.net/problem/10828 10828번: 스택 첫째 줄에 주어지는 명령의 수 N (1 ≤ N ≤ 10,000)이 주어진다. 둘째 줄부터 N개의 줄에는 명령이 하나씩 주어진다. 주어지는 정수는 1보다 크거나 같고, 100,000보다 작거나 같다. 문제에 나와있지 www.acmicpc.net 코드 package main import ( "fmt" "os" "bufio" ) func main() { reader := bufio.NewReader(os.Stdin) var t int fmt.Scanf("%d\n", &t) var s []int for { var cmd string var num int fmt.Fscanf(reader, "%s %d\n", &cmd, &num) ..
11022 11022 www.acmicpc.net/problem/11022 11022번: A+B - 8 각 테스트 케이스마다 "Case #x: A + B = C" 형식으로 출력한다. x는 테스트 케이스 번호이고 1부터 시작하며, C는 A+B이다. www.acmicpc.net 코드 package main import ( "fmt" ) func main() { var t, a, b int fmt.Scanf("%d\n", &t) c := 1 for { fmt.Scanf("%d %d\n", &a, &b) fmt.Printf("Case #%d: %d + %d = %d\n", c, a, b, a + b) t = t - 1 c = c + 1 if t == 0 { return } } } 특별한거 없었음.