Installation procedure for pre-build actions to automatically populate Xcode Info.plist with dynamic data.
Edit Xcode Scheme and add a pre-action script.
Copy the contents of preaction.sh
into the pre-action script box.
// | |
// UIView+Debug.m | |
// Symbols | |
// | |
// Created by Khanov on 16/03/14. | |
// Copyright (c) 2014 Khanov. All rights reserved. | |
// | |
#import "UIView+Debug.h" |
#if DEBUG | |
// http://www.zero4racer.com/blog/480 | |
static void uncaughtExceptionHandler(NSException *exception) { | |
NSLog(@"CRASH: %@", exception); | |
NSLog(@"Stack Trace: %@", [exception callStackSymbols]); | |
// Internal error reporting | |
} | |
#endif | |
@implementation AppDelegate |
#ifdef DEBUGX | |
NSLog(@"%s %@", __FUNCTION__, objectToDisplay)); | |
#endif |
#import <MapKit/MapKit.h> | |
@interface DPAnnotationView : MKAnnotationView | |
@property (nonatomic, assign) MKMapView *mapView; | |
@end |
- (BOOL)canBecomeFirstResponder | |
{ | |
return YES; | |
} | |
-(NSArray *)keyCommands | |
{ | |
return @[ | |
[UIKeyCommand keyCommandWithInput:@"1" modifierFlags:0 action:@selector(debugCommand1)], | |
[UIKeyCommand keyCommandWithInput:@"2" modifierFlags:0 action:@selector(debugCommand2)] |
// | |
// UIImage+ImageWithColor.h | |
// WordClock | |
// | |
// Created by James Rutherford on 2012-12-03. | |
// Copyright (c) 2012 Braxio Interactive. All rights reserved. | |
// | |
Installation procedure for pre-build actions to automatically populate Xcode Info.plist with dynamic data.
Edit Xcode Scheme and add a pre-action script.
Copy the contents of preaction.sh
into the pre-action script box.
protocol CustomKeyCodable: Codable { | |
static var keyEncodingStrategy: ([CodingKey]) -> CodingKey { get } | |
static var keyDecodingStrategy: ([CodingKey]) -> CodingKey { get } | |
init() | |
} | |
extension CustomKeyCodable { | |
init(from decoder: Decoder) throws { | |
self.init() |
import Foundation | |
extension DateFormatter { | |
static let iso8601Full: DateFormatter = { | |
let formatter = DateFormatter() | |
formatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSZZZZZ" | |
formatter.calendar = Calendar(identifier: .iso8601) | |
formatter.timeZone = TimeZone(secondsFromGMT: 0) | |
formatter.locale = Locale(identifier: "en_US_POSIX") | |
return formatter |
class Pipeline: | |
def __init__(self, value): | |
self.value = value | |
self.pipes = [] | |
def through(self, pipe): | |
self.pipes.append(pipe) | |
def now(self): | |
for pipe in self.pipes: |