Skip to content

Instantly share code, notes, and snippets.

View joonhwan's full-sized avatar
🏠
Working from home

joonhwan joonhwan

🏠
Working from home
View GitHub Profile

Doom Emacs Cheatsheet

Shortcuts

Use SPC h w to find shortcut or command

Cursor

Combination Description
@joonhwan
joonhwan / vim_crash_course.md
Last active May 13, 2026 11:12 — forked from dmsul/vim_crash_course.md
Vim Crash Course

참고: 옵션, 플래그, 명령어 변형 등에 대한 구체적인 예시는 모든 경우를 포괄하지 않습니다.

노멀 모드 (NORMAL MODE)

Vim은 모든 키의 동작 방식을 바꾸는 2가지 주요 "모드"를 가지고 있습니다. Vim의 기본 모드는 노멀 모드이며, 주로 커서 이동과 현재 파일 내 탐색에 사용됩니다.

일부 중요한 (또는 긴) 명령어는 ":"로 시작하며, 입력하는 텍스트는 화면 좌측 하단에 표시됩니다.

:q[uit] - Vim (의 현재 창)을 종료합니다. (여기서 "창"은 Vim 내부의 창을 의미하며, 동시에 여러 개의 OS 레벨 Vim 창을 열어둔 경우가 아닙니다.) :q! - 강제 종료 (마지막 저장 이후 현재 버퍼가 변경된 경우) :e[dit] {filename} - 파일 {filename}을 새 버퍼로 읽어들입니다.

@joonhwan
joonhwan / DistributedReadWriteLock.cs
Last active October 20, 2024 23:50
distributed read write lock in c# / redis
using StackExchange.Redis;
namespace RedisLockTest;
public enum LockStatus
{
Success,
Failure,
Timeout
}
@joonhwan
joonhwan / keybindings.json
Created October 8, 2024 01:39 — forked from wojukasz/keybindings.json
VsCode + Vim keybindings and settings - best of both worlds
[
//
// VIM NAVIGATION SHORTCUTS
//
{
// "ctrl+h": Focuses on the left editor group when the text editor is focused, Vim extension is active, and Vim is not in Insert mode.
"key": "ctrl+h",
"command": "workbench.action.focusLeftGroup",
"when": "editorTextFocus && vim.active && vim.mode != 'Insert'"
@joonhwan
joonhwan / python_logging.c
Created August 16, 2024 21:58 — forked from hensing/python_logging.c
Python: Use 'logging' module from C extension
#include <Python.h>
/***********************************************************/
/* define logging function and logtypes for python.logging */
/* by H.Dickten 2014 */
/***********************************************************/
enum logtypes {info, warning, error, debug};
static void log_msg(int type, char *msg)
{
@joonhwan
joonhwan / 1-init.cmd
Created March 3, 2024 13:22 — forked from RobbiNespu/1-init.cmd
Portable postgre SQL on windows
@ECHO ON
:: Save the directory where we are
pushd %CD%
echo %CD%
:: Shift directories to the correct path
%~d0
cd %~dp0
@joonhwan
joonhwan / init_postgres_windows.md
Last active February 29, 2024 23:10 — forked from jctosta/init_postgres_windows.md
A simple guide on initializing the Windows version of Postgres using the zip file instead of msi installer
@joonhwan
joonhwan / flask_matplotlib.py
Created July 31, 2022 04:24 — forked from illume/flask_matplotlib.py
Shows how to use flask and matplotlib together.
""" Shows how to use flask and matplotlib together.
Shows SVG, and png.
The SVG is easier to style with CSS, and hook JS events to in browser.
python3 -m venv venv
. ./venv/bin/activate
pip install flask matplotlib
python flask_matplotlib.py
"""
{
"vim.easymotion": true,
"vim.incsearch": true,
"vim.useSystemClipboard": true,
"vim.useCtrlKeys": true,
"vim.hlsearch": true,
"vim.sneak": true,
"vim.easymotionMarkerBackgroundColor": "#222",
"vim.normalModeKeyBindings": [
{
@joonhwan
joonhwan / _display-breakpoints.scss
Created March 14, 2021 06:29
display current breakpoint in lower left page
@mixin display-breakpoints {
&:after {
content: "xs";
position: fixed;
width: 30px;
font-size: 12px;
text-align: center;
background-color: black;
color: lime;
bottom: 0;