Skip to content

Instantly share code, notes, and snippets.

View magichim's full-sized avatar
๐ŸŽฏ
Focusing

Songwon Park magichim

๐ŸŽฏ
Focusing
View GitHub Profile
@michaellihs
michaellihs / tmux-cheat-sheet.md
Last active July 6, 2025 17:42
tmux Cheat Sheet
@betweenbrain
betweenbrain / read-files.js
Created December 5, 2016 22:35
Node.js read multiple files, write into one
var fs = require('fs');
var Promise = require('promise');
var promises = [];
var readline = require('readline');
var readFile = function (file) {
return new Promise(function (resolve, reject) {
var lines = [];
var rl = readline.createInterface({
input: fs.createReadStream('./logs/' + file)
@faressoft
faressoft / dom_performance_reflow_repaint.md
Last active June 14, 2025 16:56
DOM Performance (Reflow & Repaint) (Summary)

DOM Performance

Rendering

  • How the browser renders the document
    • Receives the data (bytes) from the server.
    • Parses and converts into tokens (<, TagName, Attribute, AttributeValue, >).
    • Turns tokens into nodes.
    • Turns nodes into the DOM tree.
  • Builds CSSOM tree from the css rules.
@bastienrobert
bastienrobert / README.md
Last active April 29, 2024 03:24
Script to open chrome with specific URL gived in params

OpenChrome

Inspired by Create React App

This script is checking in every chrome window if there's a tab with the URL gived in params:

  • If there's one: It opens chrome in first-ground and show the good chrome window with the good tab
  • If there's multiples: Same behavior but it use the first tab found
  • If there's not: It launch chrome (if it's not open) and create a new tab with the given URL

How it works

osascript openChrome.scpt YOUR_FORMATTED_URL

@Astro36
Astro36 / rust-ffi-tutorial.md
Last active May 22, 2023 11:15
Node.js์—์„œ FFI๋กœ Rust๋ฅผ ์ด์šฉํ•ด๋ณด์ž

Node.js์—์„œ FFI๋กœ Rust๋ฅผ ์ด์šฉํ•ด๋ณด์ž

์†Œ๊ฐœ

Rust๋Š” ์„ฑ๋Šฅ์ด ์šฐ์ˆ˜ํ•œ ๋กœ์šฐ ๋ ˆ๋ฒจ ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์–ธ์–ด ์ค‘ ํ•˜๋‚˜์ž…๋‹ˆ๋‹ค. ๋˜ํ•œ, ๋น„์šฉ ์—†๋Š” ์ถ”์ƒํ™”, ๋ฉ”๋ชจ๋ฆฌ ์•ˆ์ •์„ฑ, ๋ฐ์ดํ„ฐ ๋ ˆ์ด์Šค ์—†๋Š” ์Šค๋ ˆ๋”ฉ ๋“ฑ๋“ฑ์„ ์ง€์›ํ•˜๋ฉฐ C++์— ๋น„ํ•ด ๋ฌธ๋ฒ•๋„ ๊ฐ„๊ฒฐํ•ฉ๋‹ˆ๋‹ค. ์ด๋Ÿฌํ•œ ์žฅ์ ์˜ Rust๋ฅผ Node์™€ ๊ฒฐํ•ฉ์‹œ์ผœ ์‚ฌ์šฉํ•œ๋‹ค๋ฉด, Node์˜ ๋ถ€์กฑํ•œ ์„ฑ๋Šฅ์„ ๋ฉ”๊ฟ€ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. Node์—์„œ Rust์—์„œ ์ž‘์„ฑํ•œ ํ•จ์ˆ˜๋ฅผ ํ˜ธ์ถœํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” FFI(Foreign function interface, ์™ธ๋ถ€ ํ•จ์ˆ˜ ์ธํ„ฐํŽ˜์ด์Šค)๋ฅผ ์‚ฌ์šฉํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ์•„๋ž˜๋Š” ์ค€๋น„๋ฌผ์ž…๋‹ˆ๋‹ค.

์ค€๋น„๋ฌผ

@toy-crane
toy-crane / toss-frontend-rules.mdc
Last active July 10, 2025 00:58
ํ† ์Šค ํ”„๋ก ํŠธ์—”๋“œ ๊ฐ€์ด๋“œ๋ผ์ธ ๊ธฐ๋ฐ˜์œผ๋กœ ๋งŒ๋“  Cursor rule
# Frontend Design Guideline
This document summarizes key frontend design principles and rules, showcasing
recommended patterns. Follow these guidelines when writing frontend code.
# Readability
Improving the clarity and ease of understanding code.