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
// AppleStockService.swift | |
// PeopleStocks | |
// | |
// Created by Alex Paul on 12/5/18. | |
// Copyright © 2018 Alex Paul. All rights reserved. | |
// | |
import Foundation | |
public enum AppleServiceError: Error { |
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
body { | |
background-color: powderblue; | |
} | |
h1 { | |
color: blue; | |
} | |
p { | |
color: red; | |
} |
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 - noun: a place where people can play | |
import UIKit | |
let string = """ | |
{"name" : "alice"} | |
{"name" : "bob"} | |
{"name" : "jane"} | |
""" |
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
// | |
// ImageCache.swift | |
// CatOrDog | |
// | |
// Created by Alex Paul on 12/19/17. | |
// Copyright © 2017 Alex Paul. All rights reserved. | |
// | |
// This is a singleton to manage our NSCache objects | |
// NSCache saves temporary files in the caches directory ] |
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 | |
import Kingfisher | |
class FullScreenImageView: UIView { | |
@IBOutlet var contentView: UIView! | |
@IBOutlet var dismissButton: UIButton! | |
@IBOutlet var shareButton: UIButton! | |
@IBOutlet var imageView: UIImageView! | |
@IBOutlet var scrollView: UIScrollView! |
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 <XCTest/XCTest.h> | |
#import "Person.h" | |
@interface ParsingJSONTests : XCTestCase | |
@end | |
@implementation ParsingJSONTests | |
- (void)testReadingJSONFile { |
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
#pragma mark Keyboard Handling | |
- (void)registerForKeyboardNotifications { | |
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:) name:UIKeyboardWillShowNotification object:nil]; | |
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillHide:) name:UIKeyboardWillHideNotification object:nil]; | |
} | |
- (void)keyboardWillShow: (NSNotification *)notification { | |
NSDictionary *userInfo = [notification userInfo]; | |
CGSize size = [[userInfo objectForKey:UIKeyboardFrameEndUserInfoKey] CGRectValue].size; | |
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 | |
import Fakery | |
class ViewController: UIViewController { | |
@IBOutlet weak var tableView: UITableView! | |
private var companies = [String]() | |
private var panGesture: UIPanGestureRecognizer! |
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
// | |
// NetworkHelper.h | |
// Events | |
// | |
// Created by Alex Paul on 5/23/18. | |
// Copyright © 2018 Alex Paul. All rights reserved. | |
// | |
@interface NetworkHelper: NSObject |
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
// | |
// PersistenceDataManager.h | |
// Events | |
// | |
// Created by Alex Paul on 5/25/18. | |
// Copyright © 2018 Alex Paul. All rights reserved. | |
// | |
#import "Event.h" |
OlderNewer