Skip to content

Instantly share code, notes, and snippets.

View codyrobb's full-sized avatar

Cody Robertson codyrobb

  • StockX
  • Milford, Michigan
View GitHub Profile
@codyrobb
codyrobb / DayOne.swift
Last active December 2, 2017 20:49
Day One
// 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
enum NetworkStatus {
case wifi
case wwan
case noConnection
}
enum NetworkMonitorError: Error {
case notStarted
case unavailable
class Phrase {
// MARK: -
// MARK: Properties
private let template: String
private var lookup: [String: String] = [:]
// MARK: -
@codyrobb
codyrobb / ReactiveCocoa.podspec.json
Last active August 9, 2016 19:59 — forked from PaulTaykalo/ReactiveCocoa.podspec.json
Reactive cocoa 4.1.0 podspec for Cocoapods 1.0
{
"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"
},
//
// GradientView.swift
// Notion
//
// Created by Cody Robertson on 3/16/16.
// Copyright © 2016 Lift, Inc. All rights reserved.
//
import Foundation
import UIKit
@codyrobb
codyrobb / CGRect+Additions.swift
Last active September 7, 2022 02:21
CGRect Alignment Extension
//
// CGGeometry+Additions.swift
// TokenField
//
// Created by Cody Robertson on 2/4/16.
// Copyright © 2016 Notion AI, Inc. All rights reserved.
//
import Foundation
import UIKit