Skip to content

Instantly share code, notes, and snippets.

View J0onYEong's full-sized avatar
💭
Mach -O : dynamicLife

Junyeong choi J0onYEong

💭
Mach -O : dynamicLife
  • 홍익대학교
  • Seoul Korea
View GitHub Profile
@danielrotaermel
danielrotaermel / MKMapView+ShowHide.swift
Last active February 2, 2024 04:34
MKAnnotationView extensions to show/hide annotations completely
//
// MKMapView+ShowHide.swift
//
// Created by Daniel Rotärmel on 27.10.20.
//
import MapKit
// MKAnnotationView extensions to show/hide annotations completely
extension MKMapView {
@JCSooHwanCho
JCSooHwanCho / FileIO.swift
Last active June 20, 2024 02:26
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)] // 인덱스 범위 넘어가는 것 방지