I hereby claim:
- I am karlis on github.
- I am karlis (https://keybase.io/karlis) on keybase.
- I have a public key ASBO5VK6vHUTvTaw6gyt5A2YdfI_A24cYq_nWf7M1LUBNQo
To claim this, I am signing this object:
| [filter "lfs"] | |
| required = true | |
| clean = git-lfs clean -- %f | |
| smudge = git-lfs smudge -- %f | |
| process = git-lfs filter-process | |
| [user] | |
| name = Karlis Lukstins | |
| email = [email protected] | |
| [alias] | |
| b = !git branch |
| // | |
| // Example.swift | |
| // Vinyl | |
| // | |
| // Created by Karlis Lukstins on 16/02/2021. | |
| // | |
| import SwiftUI | |
| // MARK: - Example |
| struct Food { | |
| let ingredient: Set<String> | |
| let allergens: Set<String> | |
| } | |
| func parse(_ input: String) -> [Food] { | |
| return input | |
| .components(separatedBy: .newlines) | |
| .map { | |
| let parts = $0.components(separatedBy: " (contains ") |
| // 64802175715999 | |
| public let d20 = """ | |
| Tile 2897: | |
| ####..##.. | |
| .........# | |
| .......... | |
| .#........ | |
| ##......## | |
| .......#.. | |
| ...#...##. |
| public struct Day10 { | |
| var adapterTypes: [Bool] | |
| public init(input: String) { | |
| var parsed = Self.parse(input) | |
| parsed.append(0) | |
| adapterTypes = parsed | |
| .sorted() | |
| .slidingWindows(ofCount: 2) // import swift-algorithms |
| /// ReusableCell for easy dequeueing in table views. Use UITableView.dequeueReusableCell(). | |
| protocol ReusableCell { | |
| static var reuseIdentifier: String { get } | |
| init() | |
| } | |
| extension UITableView { | |
| /// Dequeues a ReusableCell or allocates a new ReusableCell. | |
| func dequeueReusableCell<Cell: ReusableCell>() -> Cell { | |
| return dequeueReusableCell(withIdentifier: Cell.reuseIdentifier) as? Cell ?? Cell() |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object: