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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <assert.h> | |
| #include "zlib.h" | |
| #define CHUNK 16384 | |
| /* | |
| 40 Length of the zlib stream |
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 | |
| // EventKit | |
| // | |
| // Created by Dai Long on 7/21/18. | |
| // Copyright © 2018 Dai Long. All rights reserved. | |
| // | |
| import UIKit | |
| import EventKit |
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
| // in myViewController | |
| class MyViewController: UIViewController { | |
| override var preferredStatusBarStyle: UIStatusBarStyle { | |
| return .lightContent | |
| } | |
| override func awakeFromNib() { | |
| super.awakeFromNib() | |
| modalPresentationCapturesStatusBarAppearance = true //allow this VC to control the status bar appearance |
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 Person { | |
| let name: String | |
| init(name: String) { | |
| self.name = name | |
| print("\(name) is being initialized") | |
| } | |
| deinit { |
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
| ACTION = build | |
| AD_HOC_CODE_SIGNING_ALLOWED = NO | |
| ALTERNATE_GROUP = staff | |
| ALTERNATE_MODE = u+w,go-w,a+rX | |
| ALTERNATE_OWNER = grantdavis | |
| ALWAYS_SEARCH_USER_PATHS = NO | |
| ALWAYS_USE_SEPARATE_HEADERMAPS = YES | |
| APPLE_INTERNAL_DEVELOPER_DIR = /AppleInternal/Developer | |
| APPLE_INTERNAL_DIR = /AppleInternal | |
| APPLE_INTERNAL_DOCUMENTATION_DIR = /AppleInternal/Documentation |
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 UIKit | |
| public extension UIFont { | |
| enum Leading { | |
| case loose | |
| case tight | |
| } | |
| private func addingAttributes(_ attributes: [UIFontDescriptor.AttributeName: Any]) -> UIFont { |
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
| // | |
| // SplitViewController.swift | |
| // Gist | |
| // | |
| // Created by Maxim Potapov on 17/12/2017. | |
| // Copyright © 2017 Maxim Potapov. All rights reserved. | |
| // | |
| 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
| import UIKit | |
| /*: | |
| DateComponentsFormatter: A formatter that creates string representations of quantities of time. | |
| */ | |
| let dateComponentsFormatter = DateComponentsFormatter() | |
| /*: | |
| A DateComponentsFormatter can be configured with an array of NSCalendarUnits. These components are then used in the output. |
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 Firebase | |
| import FirebaseAuth | |
| extension FirebaseApp { | |
| private static var didConfigForAppExtension = false | |
| static func configureFirebaseForAppExtension( | |
| extensionPlistName: String, | |
| accessGroup: String, | |
| force: Bool = false |
OlderNewer