Skip to content

Instantly share code, notes, and snippets.

View tokijh's full-sized avatar
🎯
Focusing

Yoon Joonghyun tokijh

🎯
Focusing
View GitHub Profile
@tokijh
tokijh / PrintMethodPropertyIvar.m
Created June 3, 2021 19:25 — forked from Koze/PrintMethodPropertyIvar.m
Print Method List, Property List, and Ivar List
#import <objc/runtime.h>
void PrintMethodList(Class cls) {
printf("// Method List of %s\n", class_getName(cls));
unsigned int outCount;
Method *methodList = class_copyMethodList(cls, &outCount);
for (unsigned int i=0; i<outCount; i++) {
Method m = methodList[i];
SEL sel = method_getName(m);
printf("%s\n", sel_getName(sel));
@tokijh
tokijh / README.md
Created April 10, 2020 04:33
Stubber 에서 같은 함수인데 functionAddress 가 다르게 설정되는 문제

Stubber 에서 같은 함수인데 functionAddress 가 다르게 설정되는 문제

// [register]
// arguments type : () -> ()
// return type : ()
// function address : 5003223104
Stubber.register(someClass.some(completion:)) { completion in
  completion()
}
@tokijh
tokijh / 2019 겨울 스키장.md
Last active December 4, 2019 11:01
공유용 문서

2019 겨울 스키장

구분 시간 리프트 요금 리프트 50% 할인 리프트 40% 할인 렌탈 요금 렌탈 50% 할인 리프트 40% 할인 군인 요금 병특 요금
주간권 09:00~17:30 72,000원 36,000원 43,200원 30,000원 15,000원 18,000원 51,000원 58,200원
뉴주간권 10:30~17:00 68,000원 34,000원 40,800원 28,000원 14,000원 16,800원 48,000원 54,800원
새벽권 07:00~11:30 51,000원 25,500원 30,600원 25,000원 12,500원 15,000원 38,000원 43,100원
뉴야간권 20:30~02:00 60,000원 30,000원 36,000원 25,000원 12,500원 15,000원 42,500원 48,500원
뉴야심권 20:30~04:00 68,000원 34,000원 40,800원 28,000원 14,000원 16,800원 48,000원 54,800원
@tokijh
tokijh / LimitSubscribe.swift
Created October 8, 2019 13:30
Subscribe 를 한 번만 할 수 있도록 하는 Operator 입니다.
import RxSwift
import class Foundation.NSRecursiveLock
extension ObservableType {
func limitSubscribe() -> Observable<Element> {
return LimitSubscribe<Element>(source: self.asObservable()).asObservable()
}
}
final class LimitSubscribe<Element>: ObservableType {
@tokijh
tokijh / .swiftlint.yml
Created July 2, 2019 07:00
Swift List style
included:
- PROJECT/
- PROJECT_TESTS/
excluded:
- Pods/
opt_in_rules:
- attributes
- closure_end_indentation