목록전체 글 (41)
개발부터 자유까지
개인적으로 터미널에서 사용할때의 사용법을 익히고자 정리한다. 클로드 코드 설치macOS, Linux, WSL 설치 명령어curl -fsSL https://claude.ai/install.sh | bash claude code 시작 명령어cd your-projectclaude 필수명령명령기능예시claude대화형 모드 시작claude! for "bash command"bash 명령어 동작!cd work/ for "claude command"claude 명령어 동작/help@ for "file path"작업 디렉토리의 파일 언급@/work/agent.pyclaude "task"일화성 작업 실행claude "fix the build error"exitclaude code 종료exit/clear대화기록 지우기/c..
아래는 time.time() / time.perf_counter() / time.process_time() / time.monotonic() 네 가지 타이머 함수의 정확한 차이점 정리입니다. 전체 비교표함수목적증가 방식시스템 시간 변경 영향일시정지(절전) 영향CPU시간 기준정밀도사용 용도time.time()현재 시각 확인 (Unix timestamp)실제 시간 기준✔ 영향 받음 (NTP 동기화 등)✔ 영향 받음✖중현재 시각 출력, 로깅time.perf_counter()가장 정확한 성능 측정용모노토닉 타이머✖ 영향 없음✖ 영향 없음✖매우 높음코드 실행 시간 측정(성능 테스트)time.process_time()CPU 사용 시간 측정CPU가 작업한 시간만 증가✖ 영향 없음✖ 영향 없음✔ CPU time onl..
https://blog.naver.com/ohj3423/223008733976
목차1. MCP 개념정리2. MCP 아키텍처 이해하기 1. MCP 개념정리MCP (Model Context Protocol) is an open-source standard for connecting AI applications to external systems.MCP는 AI 앱이 외부 시스템과 통신하기 위한 규약을 구현한 오픈소스이다. MCP를 이용하면 ChatGPT나 클로드 같은 AI 앱이 로컬 파일이나 DB의 데이터에 접근할 수 있고, 검색 엔진이나 계산기 같은 툴을 사용할 수 있고, 특화된 프롬프트를 통해 워크플로우가 특정 정보에 접근하여 태스크를 수행할 수 있게 한다. AI앱을 위한 USB-C 포트라고 생각하면 된다. USB-C 포트가 전자 기기의 표준화된 방식을 제공하는 것처럼, MCP는 ..
DescriptionYou are given an array prices where prices[i] is the price of a given stock on the ith day. Find the maximum profit you can achieve. You may complete as many transactions as you like (i.e., buy one and sell one share of the stock multiple times) with the following restrictions: After you sell your stock, you cannot buy stock on the next day (i.e., cooldown one day). Note: You may not ..
1. 피보나치 수열을 재귀 함수로 구현import sysimport timedef fibo_recur(x): if x 2. 피보나치 수열을 재귀 함수와 메모이제이션 기법 추가(Top-Down)import sysimport timesys.setrecursionlimit(10**8)dp = [0] * 41def fibo_memo(x): if dp[x] != 0: return dp[x] if x 3. 피보나치 수열을 반복문으로 구현(Bottom-Up)import sysimport timesys.setrecursionlimit(10**8)def fibo_iter(x): dp[0], dp[1] = 0, 1 for i in range(2, x+1): dp[..
DescriptionGiven an m x n matrix board where each cell is a battleship 'X' or empty '.', return the number of the battleships on board. Battleships can only be placed horizontally or vertically on board. In other words, they can only be made of the shape 1 x k (1 row, k columns) or k x 1 (k rows, 1 column), where k can be of any size. At least one horizontal or vertical cell separates between tw..
uv 설치방법linux 환경# Linux/macOS curl 명령어curl -LsSf https://astral.sh/uv/install.sh | sh# Linux/macOS uv 특정 버전 설치curl -LsSf https://astral.sh/uv/0.8.22/install.sh | sh# Linux/macOS wget 명령어wget -qO- https://astral.sh/uv/install.sh | sh windows 환경# Windows uv 최신 버전 설치powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"# Windows uv 특정 버전 설치powershell -ExecutionPolicy ByPa..