본문 바로가기

개발일기/기타

(6)
software 버전 관리 - semantic versioning 보통 볼 수 있는 버전 버전 명 작성 방식 기준이 패키지마다 지멋대로 Github 공동 창업자가 만든 제안 Semantic Versioning(v2.0.0-rc1) 스펙 번역본 머 이렇게 있다는데 대충 어플들 release 버전 보면 대충 이렇구나 파악할 수 있는 부분도 많음 전문은 여기서 Semantic Versioning 소개 소프트웨어의 버전 명을 정하는 방법은 여러 가지가 있지만 명확한 기준 없이 지어질 때가 많습니다. 이번 글은 여러 경험을 종합하여 만들어진 Semantic Versioning 스펙을 소개합니다. spoqa.github.io 기본 구조는 이렇다 Major.Minor.Patch 이 글을 토대로 내가 정리한 것 Software 버전 관리 규칙, 너만 모르는 Semantic versi..
[vscode] 다중 주석 Ctrl+K -> Ctrl+C : 여러 행 한꺼번에 주석 처리(//) Ctrl+K -> Ctrl+U : 주석 처리 해제(//) reference : https://www.biew.co.kr/entry/Visual-Studio-CodeVS-Code-%EC%9C%A0%EC%9A%A9%ED%95%9C-%EB%8B%A8%EC%B6%95%ED%82%A4-%EC%82%AC%EC%9A%A9-%EB%B0%A9%EB%B2%95
pyplot 시도 import matplotlib from matplotlib import pyplot as plt import numpy as np file_name = '21q' fn = "graph/"+file_name x = np.arange(4) years = ['default', 'n=50', 'n=100','n=200'] # x축 이름(값) 설정 values = [99.6, 98.73 , 98.81 , 98.83] # y축 값 matplotlib.use('Agg') # 아마 그래픽 지원 안되는 서버 버전이나 ssh 에서 사용해야함 plt.figure(figsize=(10, 10)) # 그림(저장되는 그래프) 크기 plt.bar(x, values) # 막대 그래프 만드는 거 plt.xticks(x, years)..
pyplot tutorial pycharm이 아니고 pyplot로 그래프를 그리는 거였다...ㅎ 이제 윈도우 말고 리눅스에서 해야지 Pyplot tutorial https://matplotlib.org/stable/tutorials/introductory/pyplot.html Pyplot tutorial — Matplotlib 3.4.2 documentation text can be used to add text in an arbitrary location, and xlabel, ylabel and title are used to add text in the indicated locations (see Text in Matplotlib Plots for a more detailed example) All of the text fun..
linked list stack (in c) #include #include #define FALSE 0 #define TRUE 1 typedef struct NODE{ struct NODE *next; int num; }NODE; NODE *top; void push(int data); int pop(); int isempty(); int main(){ push(1); push(2); printf("%d\n", pop()); push(3); push(4); printf("%d\n", pop()); printf("%d\n", pop()); printf("%d\n", pop()); return 0; } void push(int data){ struct NODE *pushnode=malloc(sizeof(struct NODE)); pushnode->n..
stack & queue (in c) -stack 선입후출 top에서 삽입/삭제가 일어남 연산 push() //데이터 삽입 pop() //데이터 삭제, 반환 isempty() //스텍이 비었는지 여부 반환 //비었으면 1(true) 아니면 0(false) 반환 isfull() //스텍에 원소가 찼는지 여부 반환 //찼으면 1(true) 아니면 0(false) 반환 1차원 배열로 구현 -> stack.c #include #define MAX_STACK_SIZE 3 #define FALSE 0 #define TRUE 1 int stack[MAX_STACK_SIZE]; int top=-1; void push(int data); int pop(); int isempty(); int isfull(); int main(){ push(10); push(..