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
// MARK: - | |
// MARK: [Day 1] | |
func part_one(input: String) -> Int { | |
let sequence = input.characters.flatMap { Int(String($0)) } | |
var total = 0 | |
for (index, value) in sequence.enumerated() { | |
let next: Int |
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 NetworkStatus { | |
case wifi | |
case wwan | |
case noConnection | |
} | |
enum NetworkMonitorError: Error { | |
case notStarted | |
case unavailable |
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
class Phrase { | |
// MARK: - | |
// MARK: Properties | |
private let template: String | |
private var lookup: [String: String] = [:] | |
// MARK: - |
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
{ | |
"name": "ReactiveCocoa", | |
"version": "4.2.1", | |
"summary": "A framework for composing and transforming streams of values.", | |
"description": "ReactiveCocoa (RAC) is an Objective-C framework for Functional Reactive Programming.\nIt provides APIs for composing and transforming streams of values.", | |
"homepage": "https://github.com/ReactiveCocoa/ReactiveCocoa", | |
"license": { | |
"type": "MIT", | |
"file": "LICENSE.md" | |
}, |
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
// | |
// GradientView.swift | |
// Notion | |
// | |
// Created by Cody Robertson on 3/16/16. | |
// Copyright © 2016 Lift, Inc. All rights reserved. | |
// | |
import Foundation | |
import UIKit |
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
// | |
// CGGeometry+Additions.swift | |
// TokenField | |
// | |
// Created by Cody Robertson on 2/4/16. | |
// Copyright © 2016 Notion AI, Inc. All rights reserved. | |
// | |
import Foundation | |
import UIKit |