Verifying that "codywinton.id" is my Blockstack ID. https://onename.com/codywinton
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
| Verifying I am +codywinton on my passcard. https://onename.com/codywinton |
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 ViewCategory : String { | |
| case home | |
| case info | |
| case settings | |
| case interests | |
| func button() -> UIButton { | |
| let button = UIButton() | |
| button.setImage(UIImage(named:rawValue), for: .normal) |
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 | |
| public func equilibriumIndex(_ A : inout [Int]) -> Int { | |
| var rightSum = A.reduce(0, +) | |
| var leftSum = 0 | |
| for (index, element) in A.enumerated() { | |
| rightSum -= element | |
| guard rightSum != leftSum else { return index } |