This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Foundation | |
| extension Encodable { | |
| public func dictionary() -> [String: Any] { | |
| do { | |
| let formatter = DateFormatter() | |
| formatter.dateFormat = "yyyy-MM-dd HH:mm:ss" | |
| formatter.timeZone = TimeZone(abbreviation: "KST") | |
| formatter.locale = Locale(identifier: "en_US_POSIX") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // MyObservable.swift | |
| // RxJavaExample | |
| // | |
| // Created by Chiwon Song | |
| // | |
| import Foundation | |
| class MyObservable<T> { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.LinkedList; | |
| import java.util.Queue; | |
| class Solution { | |
| class IndexedNumber { | |
| int index; | |
| int number; | |
| public IndexedNumber(int index, int number) { | |
| this.index = index; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| import RxSwift | |
| import RxCocoa | |
| struct TargetedControlEvent<T> { | |
| var event: UIControl.Event | |
| var sender: T | |
| } | |
| extension Reactive where Base: UIControl { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # Origin | |
| # https://gist.github.com/drilonrecica/3ca7ca6cc5c347b1d5dad64755a29f7e | |
| # | |
| #!/bin/bash | |
| set -e | |
| function sedi { | |
| if [ "$(uname)" == "Linux" ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| enum RoutingTarget { | |
| case mainPage | |
| case signup | |
| case login | |
| } | |
| RoutingTargetManager.shared.add(.mainPage, { MainPageBuilder() }) | |
| // ---------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // https://programmers.co.kr/learn/courses/30/lessons/17678 | |
| import java.util.Arrays; | |
| import java.util.LinkedList; | |
| import java.util.List; | |
| import java.util.stream.Collectors; | |
| class Solution { | |
| class Time implements Comparable<Time> { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.LinkedList; | |
| import java.util.List; | |
| import java.util.regex.Pattern; | |
| import java.util.stream.Collectors; | |
| import java.util.stream.IntStream; | |
| // https://programmers.co.kr/learn/courses/30/lessons/17677 | |
| class Solution { | |
| public int solution(String str1, String str2) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import RxCocoa | |
| import RxSwift | |
| import UIKit | |
| class ViewController: UIViewController { | |
| enum SortType { | |
| case none, newest, oldest | |
| } | |
| enum MonthType { |