Skip to content

Instantly share code, notes, and snippets.

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

Jay Lee Zeta611

๐ŸŽฏ
Focusing
View GitHub Profile
@Zeta611
Zeta611 / FileIO.swift
Created August 16, 2021 14:51 — forked from JCSooHwanCho/FileIO.swift
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)] // ์ธ๋ฑ์Šค ๋ฒ”์œ„ ๋„˜์–ด๊ฐ€๋Š” ๊ฒƒ ๋ฐฉ์ง€
@Zeta611
Zeta611 / Android ๊ฐœ๋ฐœ์„ ์ˆ˜์ฃผํ•ด์„œ Kotlin์„ ์ œ๋Œ€๋กœ ์จ๋ดค๋”๋‹ˆ ์ตœ๊ณ ์˜€๋‹ค.md
Created December 18, 2019 09:01
Android ๊ฐœ๋ฐœ์„ ์ˆ˜์ฃผํ•ด์„œ Kotlin์„ ์ œ๋Œ€๋กœ ์จ๋ดค๋”๋‹ˆ ์ตœ๊ณ ์˜€๋‹ค๋ผ๋Š” ๊ธ€์„ ๋ฒˆ์—ญํ–ˆ์Šต๋‹ˆ๋‹ค.

Android ๊ฐœ๋ฐœ์„ ์ˆ˜์ฃผํ•ด์„œ Kotlin์„ ์ œ๋Œ€๋กœ ์จ๋ดค๋”๋‹ˆ ์ตœ๊ณ ์˜€๋‹ค.

๊ธ€์— ์•ž์„œ

์ด ๊ธ€์€ ์ผ๋ณธ์˜ omochimetaru๋‹˜์ด Qiita์— ์˜ฌ๋ฆฐ Android ๊ฐœ๋ฐœ์„ ์ˆ˜์ฃผํ•ด์„œ Kotlin์„ ์ œ๋Œ€๋กœ ์จ๋ดค๋”๋‹ˆ ์ตœ๊ณ ์˜€๋‹ค.๋ผ๋Š” ๊ธ€์„ ๋ฒˆ์—ญํ•ด์„œ ๋งŒ๋“ค์—ˆ์Šต๋‹ˆ๋‹ค. ๋ฒˆ์—ญ์„ ํ”์พŒํžˆ ํ—ˆ๋ฝํ•ด์ฃผ์‹  omochimetaru๋‹˜๊ป˜ ๊ฐ์‚ฌํ•˜๋‹ค๋Š” ๋ง์”€ ๋“œ๋ฆฝ๋‹ˆ๋‹ค. ๋˜ํ•œ ๊ธ€์—์„œ ํ•œ๊ตญ์—์„œ๋Š” ์“ฐ์ด์ง€ ์•Š๋Š” ํ‘œํ˜„๋“ค ๋“ฑ์— ๋Œ€ํ•ด์„œ๋Š” ์˜์—ญ์ด ์„ž์—ฌ์žˆ์Šต๋‹ˆ๋‹ค. ์ด ์  ์–‘ํ•ด ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค. ๋Šฆ์€ ์‹œ๊ฐ„๊นŒ์ง€ ์˜ค์—ญ์„ ์ฐพ๊ณ  ๋ฒˆ์—ญ์˜ ์งˆ์„ ๋†’์ด๋Š”๋ฐ ๋งŽ์€ ๋„์›€์„ ์ฃผ์‹œ๊ณ  ์˜คํžˆ๋ ค ์ €๋ณด๋‹ค ๋งŽ์ด ๊ณ ์ƒํ•ด์ฃผ์‹  ์ด์ƒํ•œ๋ชจ์ž„์˜ pluulove๋‹˜, chiyodad๋‹˜, lemonade๋‹˜๊ป˜๋„ ๊ฐ์‚ฌํ•˜๋‹ค๋Š” ๋ง์”€ ๋“œ๋ฆฝ๋‹ˆ๋‹ค. ์ฝ์–ด์ฃผ์…”์„œ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.

Kotlin์„ ์‹ค๋ฌด ํ”„๋กœ์ ํŠธ์—์„œ ์‚ฌ์šฉํ–ˆ์Šต๋‹ˆ๋‹ค.

๋ฉฐ์น  ์ „, ์ œ๊ฐ€ ์†Œ์†๋œ Qoncept์—์„œ "๋ฆฌ์–ผ ์ˆ ๋ž˜์žก๊ธฐ"xํ›„์ง€ํ ํ•˜์ด๋žœ๋“œ ๊ฑฐ๋Œ€ ์œ ์›์ง€์—์„œ๋ถ€ํ„ฐ์˜ ๋„์ฃผ๋ฅผ ๊ฐœ๋ฐœํ–ˆ๊ณ  ์ถœ์‹œํ–ˆ์Šต๋‹ˆ๋‹ค.

@Zeta611
Zeta611 / UIBarButtonItem+Badge.swift
Last active August 30, 2019 11:54 — forked from freedom27/UIBarButtonItem+Badge.swift
[UIBarButtonItem+Badge] #iOS #extension
//
// UIBarButtonItem+Badge.swift
//
// Created by Jaeho Lee on 30/08/2019.
// Copyright ยฉ 2019 Jay Lee <[email protected]>
//
// Original Source:
// https://gist.github.com/freedom27/c709923b163e26405f62b799437243f4
//
@Zeta611
Zeta611 / GPG and git on macOS.md
Created June 27, 2019 16:26 — forked from danieleggert/GPG and git on macOS.md
How to set up git to use the GPG Suite

GPG and git on macOS

Setup

No need for homebrew or anything like that. Works with https://www.git-tower.com and the command line.

  1. Install https://gpgtools.org -- I'd suggest to do a customized install and deselect GPGMail.
  2. Create or import a key -- see below for https://keybase.io
  3. Run gpg --list-secret-keys and look for sec, use the key ID for the next step
  4. Configure git to use GPG -- replace the key with the one from gpg --list-secret-keys