This file contains 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
public protocol MapInteraction { | |
var visibleArea: Polygon? { get set } | |
var visibleAreaPublisher: AnyPublisher<Polygon?, Never> { get } | |
} |
This file contains 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
J. Jagr.............3385 = 41.5% | |
P. Marleau..........3197 = 39% | |
J. Thornton.........3154 = 38.6% | |
Z. Chara............3109 = 38.1% | |
S. Doan.............2967 = 36.3% | |
C. Chelios..........2915 = 35.7% | |
J. Iginla...........2871 = 35.1% | |
M. Messier..........2857 = 35% | |
M. Recchi...........2796 = 34.2% | |
D. Andreychuk.......2707 = 33.1% |
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 17 columns, instead of 15 in line 5.
This file contains 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
START_DATE,START_TIME,START_TIME_ET,SUBJECT,LOCATION,DESCRIPTION,END_DATE,END_DATE_ET,END_TIME,END_TIME_ET,REMINDER_OFF,REMINDER_ON,REMINDER_DATE,REMINDER_TIME,REMINDER_TIME_ET,SHOWTIMEAS_FREE,SHOWTIMEAS_BUSY | |
01-14-2021,12:00 AM,3:00 AM,Anaheim at Vegas,T-Mobile Arena - Las Vegas - NV,,01-14-2021,01-14-2021,3:00 AM,6:00 AM,FALSE,TRUE,01-14-2021,11:00 PM,2:00 AM,FREE,BUSY | |
01-16-2021,12:00 AM,3:00 AM,Anaheim at Vegas,T-Mobile Arena - Las Vegas - NV,,01-16-2021,01-16-2021,3:00 AM,6:00 AM,FALSE,TRUE,01-16-2021,11:00 PM,2:00 AM,FREE,BUSY | |
01-18-2021,12:00 AM,3:00 AM,Arizona at Vegas,T-Mobile Arena - Las Vegas - NV,,01-18-2021,01-18-2021,3:00 AM,6:00 AM,FALSE,TRUE,01-18-2021,11:00 PM,2:00 AM,FREE,BUSY | |
01-20-2021,12:00 AM,3:00 AM,Arizona at Vegas,T-Mobile Arena - Las Vegas - NV,,01-20-2021,01-20-2021,3:00 AM,6:00 AM,FALSE,TRUE,01-20-2021,11:00 PM,2:00 AM,FREE,BUSY | |
01-22-2021,12:00 AM,3:00 AM,Vegas at Arizona,Gila River Arena - Glendale - AZ,,01-22-2021,01-22-2021,3:00 AM,6:00 AM,FALSE,TRUE,01-22-2021,11:00 PM,2:00 AM |
This file contains 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 SwiftUI | |
struct PullToRefreshSample: View { | |
let items = [ | |
"one", "two", "three", "four", "five" | |
] | |
@State private var isRefreshing = true |
This file contains 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 UIKit | |
import BackgroundTasks | |
@UIApplicationMain | |
class AppDelegate: UIResponder, UIApplicationDelegate { | |
// app data, just contains a lastUpdateTime property that is set whenever | |
// handleAppRefresh is called as a way to validate the bgFetch is being triggered | |
// by iOS | |
// |
This file contains 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 | |
class Foo: CustomStringConvertible { | |
static func calculatedValue(for thing: String) -> String { | |
return thing.uppercased() | |
} | |
func calculatedValue(for thing: String) -> String { | |
return thing.uppercased() |
This file contains 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 | |
import SafariServices | |
import AuthenticationServices | |
private protocol AuthenticationSessionProvider { | |
func start() -> Bool | |
func cancel() | |
} | |
extension SFAuthenticationSession: AuthenticationSessionProvider {} |
This file contains 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 | |
// TweetPing_iOS | |
import UIKit | |
class TweetPingLayer: CAShapeLayer { | |
var pingColor: UIColor! { |
This file contains 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
#if DEBUG | |
println("Debug mode") | |
#else | |
println("Release Mode") | |
#endif | |
#if false | |
println("This code will never run") | |
#endif | |
This file contains 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
// Functional Programming exercises. | |
// | |
// Rules: | |
// 1. No loops (for, while, do/while)! | |
// 2. No if, else, or switch statements. | |
// 3. No "var" variables - only "let". | |
// | |
// Functions to use: | |
// map, reduce, filter | |
// |
NewerOlder