This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import typing | |
import logging | |
import uvicorn | |
from os.path import abspath | |
import pathlib as path | |
from starlette.staticfiles import StaticFiles | |
from fastapi import FastAPI, Request, Response | |
app = FastAPI(title='my-API', version='0.0.1', docs_url=None, redoc_url=None) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
COMMIT_MSG_FILE=$1 | |
COMMIT_SOURCE=$2 | |
SHA1=$3 | |
COMMIT_MSG=$(cat $COMMIT_MSG_FILE) | |
/usr/bin/perl -i.bak -ne 'print unless(m/^. Please enter the commit message/..m/^#$/)' "$COMMIT_MSG_FILE" | |
BRANCH_NAME=$(git branch 2>/dev/null | grep -e ^* | tr -d ' *') | |
ADDED_FILES=$(git diff --cached --name-only) | |
TOKENED=(${ADDED_FILES///n/ }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#define NG 5 | |
#define NE 4 | |
void getir(int *n, char *s){ scanf("%d %s", n, s);} | |
void gete(char *s){ scanf("%s", s);} | |
void getg(int *n){ scanf("%d", n);} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
int main(){ | |
char tmp[101]; | |
scanf("%101[^\n]", tmp); //엔터(return)키 들어오기 전까지 계속 입력받기 | |
int len = strlen(tmp); | |
int chk = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
int main(){ | |
char input[101], tmp[101]; | |
scanf("%s", input); | |
int len=strlen(input); // 문자열의 총길이 | |
int k=0; // 새로 생성하는 문자열의 길이를 저장할 변수. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
void merge(int* arr, int l, int m, int r){ | |
int len1 = m-l+1, len2 = r-m; | |
int tmpa[len1], tmpb[len2]; | |
for (int i=0; i<len1; i++) tmpa[i] = arr[l+i]; | |
for (int i=0; i<len2; i++) tmpb[i] = arr[m+1+i]; | |
int i=0, j=0, k=l; |