본문 바로가기

Computer Science

(127)
input 태그에 레이블 애니메이션 https://material.io/components/text-fields 이런식으로 Placeholder 에서 좌상단으로 이동하는 효과를 만들수 있을까? https://jacobruiz.com/blog/2021/2/11/how-to-transition-placeholder-text-into-a-label-in-react-floating-label-inputs 이거 보고 참고하면 됨
git log 예쁘게 git config --global alias.logs "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)%Creset' --abbrev-commit" git logs 하면 뜸
내가 마주친 Git 명령어 원격 pull 동료가 로컬에서 features/mobile-header를 작업끝내고 원격에 올렸다. (remote/origin/features/mobile-header) 그럼 내가 내가 로컬에서 features/desktop-header 을 작업하다가 git pull origin/features/mobile-header 로 땡기면 내거랑 자동으로 머지가 된다. 그리고 여전히 features/desktop-header 이면서 동료의 브랜치가 머지가 된 상태가 된다. (충돌없을시) 내 생각엔, 동료 브랜치를 pull로 땡기고, 내거를 fast-foward 머지된것 같다. 어느새 티스토리도 이모티콘 생겼다 ㄷㄷ
span 이 display: block? 어떻게 된걸까? 응~ 위에 부모가 flex 인가봄
CRA Typescript strict of eslint d타입스크립트가 적용된 CRA 프로젝트에서 Eslint를 수정해보려합니다. 아래 명령어로 CRA Typescript 버전을 생성 npx create-react-app my-app --template=typescript 근데 저 빨강색 밑줄이 거슬린다. jsx에서는 잘만 썼는데..후.. 저거는 tsconfig.json 에서 strict: true 로 설정되어있어서 그렇다. 저거 끄면 기존 처럼 쓸 수 있다. 모든 eslint가 꺼지는 것은 아니다. 몇가지만 disabled 되는데 아래에 strict가 어떤것들을 설정하는지 자세히 알수 있다. https://kovalevski.net/how-to-configure-tsconfigjson-typescript-strict-options/ How To Config..
craco 사용하기 cra 로 react app 을 작성하게 되면, 경로가 마음에 드는대로 안된다. | 자세히는 1. 상대경로 됨 2. src/dfdf/dfdf/dfdf src 부터 타고 내려와야해 이런 귀찮음을 줄이기 위해서는 crago 를 사용하면 된다. const CracoAlias = require("craco-alias"); module.exports = { plugins: [ { plugin: CracoAlias, options: { source: "tsconfig", baseUrl: "./src", tsConfigPath: "./tsconfig.extend.json", }, }, ], }; craco.config.js 내가 했던 컨피그 파일 ------- { "compilerOptions": { "baseUrl..
9012 9012 www.acmicpc.net/problem/9012 9012번: 괄호 괄호 문자열(Parenthesis String, PS)은 두 개의 괄호 기호인 ‘(’ 와 ‘)’ 만으로 구성되어 있는 문자열이다. 그 중에서 괄호의 모양이 바르게 구성된 문자열을 올바른 괄호 문자열(Valid PS, VPS)이라고 www.acmicpc.net 코드 package main import ( "fmt" "bufio" "os" ) func main() { reader := bufio.NewReader(os.Stdin) // writer := bufio.NewWriter(os.Stdout) var t int var s string fmt.Fscanf(reader, "%d\n", &t) for { fmt.Fscanf(re..
10845 10845 www.acmicpc.net/problem/10845 10845번: 큐 첫째 줄에 주어지는 명령의 수 N (1 ≤ N ≤ 10,000)이 주어진다. 둘째 줄부터 N개의 줄에는 명령이 하나씩 주어진다. 주어지는 정수는 1보다 크거나 같고, 100,000보다 작거나 같다. 문제에 나와있지 www.acmicpc.net 코드 package main import ( "bufio" "fmt" "os" ) func main() { reader := bufio.NewReader(os.Stdin) writer := bufio.NewWriter(os.Stdout) var t int fmt.Fscanf(reader, "%d\n", &t) var stack []string for { input, _, _ := re..