모든 내용을 그대로 따라지 마세요. 시간이 지나 변경된 내용도 있음. 아래
따라 해보기내용을 참고하세요.
This file contains hidden or 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
| (defun save-framegeometry () | |
| "Gets the current frame's geometry and saves to ~/.emacs.d/framegeometry." | |
| (let ( | |
| (framegeometry-left (frame-parameter (selected-frame) 'left)) | |
| (framegeometry-top (frame-parameter (selected-frame) 'top)) | |
| (framegeometry-width (frame-parameter (selected-frame) 'width)) | |
| (framegeometry-height (frame-parameter (selected-frame) 'height)) | |
| (framegeometry-file (expand-file-name "~/.emacs.d/framegeometry")) | |
| ) |
This file contains hidden or 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
| /* | |
| Proof of concept: Writing dual-mode (sync and async) code via generators | |
| Recommendation: start by reading the example (at the end). | |
| API: | |
| – The API object is called `def`. | |
| – Dual-mode `await`: const unwrapped = yield wrapped; | |
| – Dual-mode `yield`: yield def.$one(singleValue) | |
| – Dual-mode `yield*`: yield def.$all(iterable) |
This file contains hidden or 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
| ;;; $DOOMDIR/config.el -*- lexical-binding: t; -*- | |
| ;; Place your private configuration here! Remember, you do not need to run 'doom | |
| ;; sync' after modifying this file! | |
| ;; Some functionality uses this to identify you, e.g. GPG configuration, email | |
| ;; clients, file templates and snippets. | |
| (setq user-full-name "YoungTaek Joo" | |
| user-mail-address "soomtong@gmail.com") |
This file contains hidden or 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
| { | |
| "title": "HHKB for macOS", | |
| "rules": [ | |
| { | |
| "description": "shift + esc to tilde", | |
| "manipulators": [ | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "escape", |
This file contains hidden or 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
| 'use strict'; | |
| const crypto = require('crypto'); | |
| const ENCRYPTION_KEY = process.env.ENCRYPTION_KEY; // Must be 256 bits (32 characters) | |
| const IV_LENGTH = 16; // For AES, this is always 16 | |
| function encrypt(text) { | |
| let iv = crypto.randomBytes(IV_LENGTH); | |
| let cipher = crypto.createCipheriv('aes-256-cbc', Buffer.from(ENCRYPTION_KEY), iv); |
This file contains hidden or 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
| { | |
| "title": "GK888B for macOS", | |
| "rules": [ | |
| { | |
| "description": "capslock to f16", | |
| "manipulators": [ | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "caps_lock" |
This file contains hidden or 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
| { | |
| "title": "GK868B for macOS", | |
| "rules": [ | |
| { | |
| "description": "capslock to f16", | |
| "manipulators": [ | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "caps_lock" |
This file contains hidden or 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
| # delete local tag '12345' | |
| git tag -d 12345 | |
| # delete remote tag '12345' (eg, GitHub version too) | |
| git push origin :refs/tags/12345 | |
| # alternative approach | |
| git push --delete origin tagName | |
| git tag -d tagName |
This file contains hidden or 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
| { | |
| "title": "backtick-to-esc.json", | |
| "rules": [ | |
| { | |
| "description": "Escape if backtick is pressed alone; post backtick if Command+Shift+backtick is pressed.", | |
| "manipulators": [ | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "grave_accent_and_tilde", |