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
// | |
// Logging.h | |
// | |
// Created by Julien Grimault (@jgrimaul) on 19/01/2012. | |
// Copyright (C) 2011-2020 by Steinlogic | |
#import <Foundation/Foundation.h> | |
#ifdef DEBUG | |
# define DLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__); |
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
// DataManager.h | |
#import <Foundation/Foundation.h> | |
#import <CoreData/CoreData.h> | |
extern NSString * const DataManagerDidSaveNotification; | |
extern NSString * const DataManagerDidSaveFailedNotification; | |
@interface DataManager : NSObject { | |
} |
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
// | |
// FileFunctionLevelFormatter.h | |
// | |
// Created by Julien Grimault on 23/1/12. | |
// Copyright (c) 2012 Julien Grimault. All rights reserved. | |
// | |
#import "DDLog.h" | |
@interface FileFunctionLevelFormatter : NSObject <DDLogFormatter> |
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
// | |
// NSObject+setValuesForKeysWithJSONDictionary.h | |
// SafeSetDemo | |
// | |
// Created by Tom Harrington on 12/29/11. | |
// Copyright (c) 2011 Atomic Bird, LLC. All rights reserved. | |
// | |
// Modified by Julien Grimault | |
// |
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
NSDictionary* infoDictionary = [[NSBundle mainBundle] infoDictionary]; | |
NSString* versionNumber = [infoDictionary objectForKey:@"CFBundleShortVersionString"]; | |
NSString* buildNumber = [infoDictionary objectForKey:(NSString*)kCFBundleVersionKey]; | |
NSString* title = [NSString stringWithFormat:@"v%@(%@)",versionNumber,buildNumber]; |
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
#deactivate dynamic pager | |
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist | |
#activate dynamic pager | |
sudo launchctl load -wF /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist |
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
@interface Engine | |
+ (id)sharedEngine; | |
- (MKNetworkOperation*)someOperation:(CompletionBlock)block onError:(ErrorBlock)errorBlock; | |
@end | |
@interface MyViewController : UITableViewController | |
@property (nonatomic, strong) MKNetworkOperation* operation; | |
@end |
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
#!/bin/bash | |
_base_dir="${1:-.}" | |
echo "Building assets bundle in $_base_dir" | |
_dirContentBundle="$_base_dir/*.bundle" | |
for f in $_dirContentBundle; | |
do | |
echo "removing old bundle $f" | |
rm -rf "$f" |
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
- (RACSignal*)friendsId | |
{ | |
RACReplaySubject* subject = [RACReplaySubject subject]; | |
[self enqueueWithSubject:subject cursor:-1]; | |
return subject; | |
} | |
- (void)enqueueWithSubject:(RACSubject*)subject cursor:(NSInteger)cursor | |
{ | |
RACSignal* json = [self friendsIdAtCursor:cursor]; |
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
// | |
// CrashlyticsLogger.h | |
// | |
// Created by Julien Grimault on 4/1/13. | |
// | |
// | |
#import "DDLog.h" | |
@interface CrashlyticsLogger : DDAbstractLogger |
OlderNewer