- Region
- Team
- Player (not implemented)
- League
- Season
- Winner
- Split
- Winner
- Tournament
- Season
- Team
This file contains 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
//: A UIKit based Playground for presenting user interface | |
import UIKit | |
import PlaygroundSupport | |
class MyViewController : UIViewController { | |
override func loadView() { | |
let view = UIView() | |
view.backgroundColor = .white |
This file contains 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 | |
public typealias Snowflake = Int64 | |
extension Snowflake { | |
public static var offset: Date? = nil | |
private static var increment: Int = 0 | |
public static func generate(offset: Date? = nil, workerID: Int = 0, processID: Int = 0, increment: Int = 0) -> Snowflake { | |
var timestamp: Double |
This file contains 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
protocol BaseTableType where Self: UITableView { | |
associatedtype CellType: Configurable | |
associatedtype ItemType: Decodable | |
} | |
class BaseTable<T: Configurable>: UITableView, BaseTableType, UITableViewDelegate { | |
typealias CellType = T | |
typealias ItemType = T.ItemType | |
private let bag = DisposeBag() |
This file contains 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 HTTPMethod: String { | |
case get, put, post, patch, delete | |
} | |
public protocol APIRequest { | |
associatedtype Response: Decodable | |
var base : String { get } | |
var endpoint: String { get } | |
var method : HTTPMethod { get } | |
} |
I hereby claim:
- I am matrixsenpai on github.
- I am matrixsenpai (https://keybase.io/matrixsenpai) on keybase.
- I have a public key whose fingerprint is DEA5 CF7A CF55 5B78 517F 6DC9 E2EB 4CE8 8DE3 7287
To claim this, I am signing this object:
This file contains 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
// Your form | |
Section("My Form") { $0.tag = "AddSection" } | |
<<< TextRow("rowOne") | |
<<< TextRow("rowTwo") | |
<<< ButtonRow("addRow") { | |
$0.title = "Add Row" | |
}.onCellSelection { (cell, row) in | |
self.form.sectionBy(tag: "AddSection") | |
<<< TextRow("newRowTag") | |
} |