Skip to content

Instantly share code, notes, and snippets.

View junhg0211's full-sized avatar
🏳️‍🌈

Sch junhg0211

🏳️‍🌈
View GitHub Profile

INSERT 모드

  • i를 입력하면 글씨를 입력할 수 있다.
  • I를 입력하면 커서가 현재 줄의 맨 앞으로 이동하고 글씨를 입력할 수 있다.
  • a를 입력하면 글씨를 커서 오른쪽에 입력할 수 있다.
  • A를 입력하면 커서가 현재 줄의 맨 뒤로 이동하고 글씨를 입력할 수 있다.
  • o를 입력하면 커서가 현재 줄 아래에 새로운 줄을 추가하고 글씨를 입력할 수 있다.
  • O를 입력하면 커서가 현재 줄 위에 새로운 줄을 추가하고 글씨를 입력할 수 있다.
  • INSERT 모드에서 ESC를 누르면 NORMAL 모드로 돌아간다.
@junhg0211
junhg0211 / same_slengus.py
Last active May 9, 2023 08:39
두 Slengus 단어가 같은지 다른지 확인합니다.
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'
@junhg0211
junhg0211 / mane.py
Created April 25, 2023 11:28
문자열과 비슷한 비슷한 문자열을 문자열을 문자열과 받은 프로그램
from sys import stderr
from random import choice, randrange
Relations = dict[str, dict[str, int]]
def get_string() -> str:
""" 표준입력으로 받은 문자열을 반환한다. """
string = ''
while True:
@junhg0211
junhg0211 / money_to_time.py
Created April 19, 2023 12:47
돈을 시간으로 바꿔주는 프로그램
"""
최저시급을 1달로 하여, 금액을 입력받았을 때에
해당 금액에 대한 최저시급-환산 가치를 출력하는 프로그램.
`MONTH`에 저장된 값이 1개월 최저시급이다.
"""
MONTH = 2010580
def format_time(amount: int):
months = amount / MONTH
@junhg0211
junhg0211 / asyncio_practice.py
Created October 14, 2022 13:05
python asyncio study
import asyncio
import random
import time
def fetch_something():
time.sleep(duration := random.random() / 10)
return duration
@junhg0211
junhg0211 / word_generator.py
Created October 9, 2022 11:40
Word Generator
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)
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