i
를 입력하면 글씨를 입력할 수 있다.I
를 입력하면 커서가 현재 줄의 맨 앞으로 이동하고 글씨를 입력할 수 있다.a
를 입력하면 글씨를 커서 오른쪽에 입력할 수 있다.A
를 입력하면 커서가 현재 줄의 맨 뒤로 이동하고 글씨를 입력할 수 있다.o
를 입력하면 커서가 현재 줄 아래에 새로운 줄을 추가하고 글씨를 입력할 수 있다.O
를 입력하면 커서가 현재 줄 위에 새로운 줄을 추가하고 글씨를 입력할 수 있다.- INSERT 모드에서
ESC
를 누르면 NORMAL 모드로 돌아간다.
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 re | |
from sys import argv, stderr | |
DEBUG = True | |
COUNT = r'\d+' | |
TARGET = r'\d+' | |
INTERACTION = f'({TARGET})(\\.({COUNT}))?\\,?' | |
CIRCLE = r'O|o' | |
LINE = r'I|i' |
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
from sys import stderr | |
from random import choice, randrange | |
Relations = dict[str, dict[str, int]] | |
def get_string() -> str: | |
""" 표준입력으로 받은 문자열을 반환한다. """ | |
string = '' | |
while True: |
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
""" | |
최저시급을 1달로 하여, 금액을 입력받았을 때에 | |
해당 금액에 대한 최저시급-환산 가치를 출력하는 프로그램. | |
`MONTH`에 저장된 값이 1개월 최저시급이다. | |
""" | |
MONTH = 2010580 | |
def format_time(amount: int): | |
months = amount / MONTH |
이 파일은 유튜브 진우영 채널 (@cwychin)의 LaTeX 입문: 실습 중심의 강의 영상을 기반으로 하고 있습니다.
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 asyncio | |
import random | |
import time | |
def fetch_something(): | |
time.sleep(duration := random.random() / 10) | |
return duration | |
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 random | |
consonants = ['mv', 'tl', 'ř', 'č', 'š', 'p', 'm', 'n', 's', 'dz', 'z', 'l', 't', 'b'][::-1] | |
vowels = ['e', 'a', 'u', 'o', 'i'] | |
syllables = ['cvc', 'v', 'cv', 'vc'] | |
def get_zipf(contribution): | |
while True: | |
number = random.randint(0, len(contribution)-1) |
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
call plug#begin() | |
" the colorscheme you know right | |
Plug 'doums/darcula' " darcula | |
Plug 'kitten/vim-adventurous' " adventurous | |
Plug 'bignimbus/pop-punk.vim' " pop-punk | |
Plug 'folke/tokyonight.nvim' " tokyonight | |
Plug 'sickill/vim-monokai' " monokai | |
Plug 'joshdick/onedark.vim' " onedark | |
Plug 'cocopon/iceberg.vim' " iceberg |