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/Foundation.h> | |
#import <StoreKit/StoreKit.h> | |
@protocol DRAppStoreManagerDelegate; | |
#define DRAppStoreCallback(callback, object) if (callback) callback(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
- (void)testMethodExpectingNoError | |
{ | |
id someObject = [self someMethodThatReturnsAnExpectedObject]; | |
id mockDependencuy = OCMClassMock([DependencyToBeMocked class]); | |
OCMStub([mockDependency someMethodWithErrorRef:[OCMArg anyObjectRef]).andReturn(someObject); | |
NSError * error = nil; | |
id someReturnedValue =[self.objectUnderTest someMethodWithErrorRef:&error]: | |
XCTAssertNotNil(someReturnedValue); |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import re | |
from subprocess import Popen, PIPE | |
from subprocess import call | |
p = Popen(["xcrun","simctl","list","devices"], stdin=PIPE, stdout=PIPE, stderr=PIPE) | |
output, err = p.communicate(b"input data that is passed to subprocess' stdin") |
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
@objc public enum Features: Int { | |
case ScheduledSendingCoachmark = 0 | |
case AccountVerifyFailureToggle | |
} | |
extension Features { | |
private var userDefaultsKey: String { | |
switch(self) { |
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 | |
public class Variable<T> { | |
var value: T | |
init(_ value: T) { | |
self.value = value | |
} | |
} |
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
diff --git a/Playgrounds/PricingAPIModels.playground/Contents.swift b/Playgrounds/PricingAPIModels.playground/Contents.swift | |
index f0c121a..2ada632 100644 | |
--- a/Playgrounds/PricingAPIModels.playground/Contents.swift | |
+++ b/Playgrounds/PricingAPIModels.playground/Contents.swift | |
@@ -1,42 +1,50 @@ | |
//: Playground - noun: a place where people can play | |
import UIKit | |
+import CoreData | |
import PPNetworking |
This file has been truncated, but you can view the full file.
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
Showing All Messages | |
Build target EventDetails of project EventDetails with configuration Debug | |
Write auxiliary files | |
write-file /Users/danielrodriguez/Library/Developer/Xcode/DerivedData/EventDetails-eqemjjsflerddceiqpqrjovmtdbi/Build/Intermediates/EventDetails.build/Debug-iphonesimulator/EventDetails.build/unextended-module-overlay.yaml | |
/bin/mkdir -p /Users/danielrodriguez/Library/Developer/Xcode/DerivedData/EventDetails-eqemjjsflerddceiqpqrjovmtdbi/Build/Intermediates/EventDetails.build/Debug-iphonesimulator/EventDetails.build/DerivedSources | |
write-file /Users/danielrodriguez/Library/Developer/Xcode/DerivedData/EventDetails-eqemjjsflerddceiqpqrjovmtdbi/Build/Intermediates/EventDetails.build/Debug-iphonesimulator/EventDetails.build/DerivedSources/EventDetails_vers.c |
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
/////////////////////////////////////////////////////// | |
//prints out available fonts. | |
// Adopted from http://codewithchris.com/common-mistakes-with-adding-custom-fonts-to-your-ios-app/#uifont | |
//WARNING!!! YOU MUST FOLLOW ALL THE STEPS TO GET THE FONT TO WORK. | |
//1. Include the font in the project | |
//2. Make sure that they’re included in the target | |
// Check build phases and check the target membership(s)) | |
//3. Double check that your fonts are included as Resources in your bundle. check copy resources in build phases section. make sure font is selected |
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
/////////////////////////////////////////////////////// | |
//prints out available fonts. | |
// from http://codewithchris.com/common-mistakes-with-adding-custom-fonts-to-your-ios-app/#uifont | |
//WARNING!!! YOU MUST FOLLOW ALL THE STEPS TO GET THE FONT TO WORK. | |
//1. Include the font in the project | |
//2. Make sure that they’re included in the target | |
// Check build phases and check the target membership(s)) | |
//3. Double check that your fonts are included as Resources in your bundle. check copy resources in build phases section. make sure font is selected |
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
class MovieTableViewController : UITableViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
tableView.register(MovieCell.self, forCellReuseIdentifier: "MovieCell") | |
} | |
} | |
extension MovieTableViewController { |
OlderNewer