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
//: Playground - noun: a place where people can play | |
import UIKit | |
class ViewController: UIViewController { | |
init() { | |
super.init(nibName: nil, bundle: nil) | |
} | |
@available(*, unavailable, message: "Loading this view controller from a nib is unsupported.") |
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
{ | |
"product_detail_frame_v1": { | |
"brand_name_span": "<span class='zu_header_sm zu_gray_2'>The Bubble Case</span>", | |
"image_gallery": { | |
"images": ["https://zcdn.global.ssl.fastly.net/images/cache/product/{width}x{height}/248870/zu49336847_main_tm1500147799.jpg"] | |
}, | |
"love": { | |
"is_lovable": 1, | |
"is_loved_by_customer": 0, | |
"loved_path": "/product/49336847/love", |
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 | |
struct CustomNotification: NotificationDescriptor { | |
struct Output { | |
let name: String | |
let type: String | |
} | |
typealias Payload = Output | |
let noteName = Notification.Name("CustomNotificationPosted") |
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
//: Playground - noun: a place where people can play | |
import UIKit | |
class VC { | |
var dataSource: DataSource? | |
func viewDidLoad() { | |
let items = dataSource?.numberOfItemsIn(section: 9) ?? -1 | |
print("There are \(items) items") |
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
- (void)createNotification { | |
NSNotification *note = [[NSNotification alloc] initWithName:JMSFoo.noteName object:nil userInfo:nil]; | |
[[NSNotificationCenter defaultCenter] postNotification: note]; | |
} |
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 | |
protocol ResponderTest: class { | |
var name: String { get } | |
func printName() -> String | |
} | |
extension ResponderTest where Self: NSObject { | |
func printName() -> String { | |
return name |
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
//: Playground - noun: a place where people can play | |
import UIKit | |
struct Person { | |
let name: String | |
let isCool: Bool? | |
} | |
struct Department { |
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
// | |
// MyViewController.h | |
// | |
// Created by Jared Sorge on 6/14/15. | |
// Copyright (c) 2015 Taphouse Software. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> | |
@interface MyViewController : UIViewController |
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
### Keybase proof | |
I hereby claim: | |
* I am jsorge on github. | |
* I am jsorge (https://keybase.io/jsorge) on keybase. | |
* I have a public key whose fingerprint is 624A 8463 510C 943E 6790 1C9F 2FDD 3FE1 3981 C642 | |
To claim this, I am signing this object: |
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
// | |
// JMSBTCentral.h | |
// CP130_HW2_Bluetooth | |
// | |
// Created by Jared Sorge on 4/20/14. | |
// Copyright (c) 2014 jsorge. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
NewerOlder