Skip to content

Instantly share code, notes, and snippets.

View hyunjuntyler's full-sized avatar

Hyunjun hyunjuntyler

View GitHub Profile
@JCSooHwanCho
JCSooHwanCho / FileIO.swift
Last active August 18, 2025 11:32
ps할 때 입력을 한꺼번에 받기 위한 유틸리티 클래스. fread의 swift 버전.
import Foundation
final class FileIO {
private let buffer:[UInt8]
private var index: Int = 0
init(fileHandle: FileHandle = FileHandle.standardInput) {
buffer = Array(try! fileHandle.readToEnd()!)+[UInt8(0)] // 인덱스 범위 넘어가는 것 방지
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active November 3, 2025 08:47
Conventional Commits Cheatsheet