분류 전체보기

· Vue.js
UI쪽을 나눠서 본다던지 크게 묶어 보면 이해하기 편합니다.
· utiil
https://velog.io/@msung99/Git-Commit-Message-Convension [Git] Commit Message Convension (협업을 위한 git 커밋컨벤션) 이번 포스팅에서는 Git 의 커밋 메시지 컨벤션에 대해 알아보겠습니다. 각 회사마다 각자의 git flow 전략을 가지고 브랜치를 관리하듯이, 그에 따라가며 자연스래 commit 에 관한 규칙도 정말 중요 velog.io 이 글을 보다가 커밋 컨벤션에 맞춰 일일히 형식을 보며 커밋 메시지를 작성하는게 귀찮아져서 좀 편하게 하고 싶은 생각이 들었습니다. 그래서 파이썬으로 간단히 만들어보았습니다. import subprocess def get_commit_message_from_user(): explain = ["\03..
· security
HTML 안에 HTML을 포함시키는 방법을 검색하던 중 iframe에 관한 이야기가 있었습니다. 이 방법이 XSS 공격에 취약하다 하여서 XSS 공격에 대해 찾아보게 됐습니다. XSS 공격이란? XSS는 Cross-Site Scripting의 약자로, 웹 응용 프로그램에서 발생하는 보안 취약점 중 하나입니다. 공격자가 웹페이지에 악성 스크립트를 삽입하여 사용자의 브라우저에서 실행되도록 하는 공격 형태입니다. XSS의 유형 XSS는 보통 세 가지 유형으로 나뉩니다. Stored XSS(저장형 XSS) - 공격자가 삽입한 스크립트가 웹서버에 저장되어, 해당 페이지를 요청하는 모든 사용자에게 전달됩니다. - 예를 들어, 게시판 또는 댓글 시스템에서 사용자가 입력한 내용이 서버에 저장되고, 이를 불러오는 과정에..
· Algorithm
https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/description/ Lowest Common Ancestor of a Binary Tree - LeetCode Can you solve this real interview question? Lowest Common Ancestor of a Binary Tree - Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. According to the definition of LCA on Wikipedia [https://en.wikipedia.org/wiki/ leetcod..
· FastAPI
https://github.com/ycd/manage-fastapi GitHub - ycd/manage-fastapi: :rocket: CLI tool for FastAPI. Generating new FastAPI projects & boilerplates made easy. :rocket: CLI tool for FastAPI. Generating new FastAPI projects & boilerplates made easy. - GitHub - ycd/manage-fastapi: :rocket: CLI tool for FastAPI. Generating new FastAPI projects & ... github.com fastapi 프로젝트를 빠르게 실행할 수 있도록 설정해주는 매니저이다. 파..
· FastAPI
간단한 애플리케이션 애플리케이션 구조 기본적으로 FastAPI 애플리케이션은 아래와 같은 구조를 갖습니다. main.py: 애플리케이션의 시작점입니다. routes 폴더: 주로 CRUD 기능 처리를 위한 라우팅이 들어 있습니다. models 폴더: 모델을 정의합니다. 어떤 형식의 class를 만들건지 작성해줍니다. database 폴더: DB와 연결하기 위한 설정을 해줍니다. auth 폴더: 보안과 관련된 기능을 작성합니다. store 폴더: MongoDB와 연관된 폴더입니다. FastAPI에 일반적으로 들어가는 폴더는 아닙니다. tests 폴더: 테스트 작성을 위한 폴더입니다. venv 폴더: 파이썬 가상 환경을 관리하기 위해 사용되는 폴더입니다. 모델 구현 from beanie import Docum..
· Algorithm
https://leetcode.com/problems/daily-temperatures/description/ LeetCode - The World's Leading Online Programming Learning Platform Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com class Solution { public int[] dailyTemperatures(int[] temperatures) { int[] answer = new int[temperatures.length]..
· Algorithm
https://leetcode.com/problems/valid-parentheses/description/ LeetCode - The World's Leading Online Programming Learning Platform Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com class Solution { public boolean isValid(String s) { Stack stack = new Stack(); for (char c : s.toCharArray()) { if..
sootecc
'분류 전체보기' 카테고리의 글 목록