I hereby claim:
- I am kylebshr on github.
- I am kylebshr (https://keybase.io/kylebshr) on keybase.
- I have a public key whose fingerprint is 7173 EFFF E1BC 0A21 D6A7 805B 0FF1 3C75 3800 1164
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| import csv | |
| import sys | |
| import subprocess | |
| NON_UTK_TICKET = 'Student Registration for non-UTK Students' | |
| UTK_TICKET = 'Student Registration for UTK Students' | |
| MENTOR_TICKET = 'Mentor Registration' | |
| ORGANIZER_TICKET = 'Organizer' | |
| PERCENT_NON_UTK = 0.45 |
| //: Playground - noun: a place where people can play | |
| import UIKit | |
| class Foo<T> { | |
| init(first: T, second: Int = 10) {} | |
| } | |
| class Bar: Foo<Int> { | |
| static func makeBar() -> Bar { |
| class PopoverTableViewController: UITableViewController { | |
| override func viewDidLayoutSubviews() { | |
| super.viewDidLayoutSubviews() | |
| self.preferredContentSize = CGSize(width: 320, height: self.tableView.contentSize.height) | |
| } | |
| } |
| import UIKit | |
| class ViewController: UIViewController, UIScrollViewDelegate { | |
| private let blueView = UIView() | |
| private let redView = UIView() | |
| private let scrollView = UIScrollView() | |
| override func viewDidLoad() { | |
| super.viewDidLoad() |
| // Decoding a `Bar` gives you the same UUID that it was encoded with | |
| struct Bar: Codable { | |
| let id: UUID | |
| init() { | |
| self.id = UUID() | |
| } | |
| } | |
| // Decoding a `Foo` gives you a new UUID |
| import UIKit | |
| class ScrollTriggeredControl: UIControl { | |
| private let dragThreshold: CGFloat = 80 | |
| private var previousFraction: CGFloat = 0 | |
| private var shouldTrigger = false | |
| private var offsetObservation: NSKeyValueObservation? | |
| private let imageView = UIImageView() |
| import UIKit | |
| class ScrollTriggeredControl: UIControl { | |
| private let dragThreshold: CGFloat = 80 | |
| private var previousFraction: CGFloat = 0 | |
| private var shouldTrigger = false | |
| private var offsetObservation: NSKeyValueObservation? | |
| private let imageView = UIImageView() |
| // | |
| // ViewController.swift | |
| // Rendering | |
| // | |
| // Created by Kyle Bashour on 11/11/19. | |
| // Copyright © 2019 Kyle Bashour. All rights reserved. | |
| // | |
| import UIKit |