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
//: Playground - Julian Date Algorithms | |
// | |
// Created by Mark Hamilton on 4/16/16. | |
// Copyright © 2016 dryverless. All rights reserved. | |
// | |
import Foundation | |
public func fliegalAndVanFlandernAlgorithm(julianDate: Int) -> (month: Int, day: Int, year: 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
// | |
// IterateOverEnums.swift | |
// Example of how to scan over an enum and return all the cases. | |
// | |
// Created by Mark Hamilton on 4/9/16. | |
// Copyright © 2016 dryverless. All rights reserved. | |
// | |
import Foundation |
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
//: Unicode Scalar Playground | |
import Foundation | |
var str = "Hello, playground" | |
protocol _UnicodeScalarType { | |
func toChar() -> Character | |
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
// | |
// LevenshteinExtensions.swift | |
// Levenshtein distance algorithm written in Swift 2.2. Both a slow and highly optimized version are included. | |
// | |
// Created by Mark Hamilton on 3/31/16. | |
// Copyright © 2016 dryverless. All rights reserved. | |
// | |
import Foundation |
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
// | |
// UITableViewExtensions.swift | |
// | |
// Created by Mark Hamilton on 3/25/16. | |
// Copyright © 2016 dryverless. 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
// | |
// TrailResult.swift | |
// azure-search-basics | |
// | |
// Created by Mark Hamilton on 3/10/16. | |
// Copyright © 2016 dryverless. All rights reserved. | |
// | |
import Foundation |
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
// | |
// AZResult.swift | |
// azure-search-basics | |
// | |
// Created by Mark Hamilton on 3/10/16. | |
// Copyright © 2016 dryverless. All rights reserved. | |
// | |
import Foundation |
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
// | |
// GeoJSON.swift | |
// azure-search-basics | |
// | |
// Created by Mark Hamilton on 3/10/16. | |
// Copyright © 2016 dryverless. All rights reserved. | |
// | |
import Foundation |
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
// | |
// ViewController.swift | |
// touchid-authentication-basics | |
// | |
// Created by Mark Hamilton on 3/2/16. | |
// Copyright © 2016 dryverless. All rights reserved. | |
// | |
import UIKit | |
import LocalAuthentication |
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
// | |
// SampleAnnotation.swift | |
// Sample class for adding annotations to MKMapView. | |
// | |
// Created by Mark Hamilton on 2/21/16. | |
// Copyright © 2016 dryverless. All rights reserved. | |
// | |
import Foundation | |
import MapKit |