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/UIKit.h> | |
#define field(__TYPE__, __NAME__) __unsafe_unretained __TYPE__ __NAME__ | |
#define group(__NAME__, __CODE__) struct __CODE__ __NAME__ | |
struct RBGTagSelectionStoryboardIDs | |
{ | |
field(NSString*, name); | |
group(controllers, { | |
field(NSString*, tagList); |
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
grep '<tbody>' $1 | # select line with table | |
sed 's/^.*<tbody>//' | # drop html before table | |
sed 's/<\/tbody>.*$//' | # drop html after table | |
sed 's/<\/tr>/<\/tr>\'$'\n/g' | # split lines with \n | |
sed 's/<[^>]*>/|/g' | # replace <td> tags with '|' | |
sed 's/^\|\{3\}[0-9]*\|\{3\}//g' | # drop line numbers | |
sed 's/\|\|/'$'\t/g' # insert tabs instead '|' |
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
MyProject Bot #29 (Tue Mar 17 19:19:07 EET 2015) | |
c297393 - Merge branch 'feature/test-feature' into 'master' | |
Feature/test feature | |
asd a | |
d | |
da | |
sda | |
sd |
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
- didFinishAppLaunch | |
{ | |
ServiceLocator* serviceLocator = [ServiceLocator new]; | |
SomeService* someService = [SomeService new]; | |
[serviceLocator useObject:someService asServiceForKind:[someService class]]; | |
SomeViewController* vc = [SomeViewController new]; | |
vc.serviceLocator = serviceLocator; | |
} |
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> | |
#define trait(NAME) protocol NAME;\ | |
@interface id_##NAME @end \ | |
typedef id_##NAME<NAME> NAME; \ | |
@protocol NAME | |
#define trait_implementation(NAME) \ | |
interface NAME##_impl : NSObject<NAME>\ | |
- (NAME *) asTrait$;\ |
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)switchPanel:(UIView*)currentPanel toPanel:(UIView*)newPanel; | |
{ | |
if (currentPanel == newPanel) return; | |
/// This part of code describes all transitions between panels. | |
/// empty mean that panel is null; | |
/// non-empty : vice versa. | |
NSString *empty = @"empty", *non_empty = @"non-empty"; | |
NSDictionary* switches = @{ |
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
#include "Release.xcconfig" | |
OTHER_CFLAGS = -DNS_BLOCK_ASSERTIONS=1 |
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 Dababase | |
+(<ClassName> *)shared; | |
- (NSArray *)managedObjectIDsWithObjects:(NSArray *)objects; | |
- (NSArray *)objectsWithManagedObjectIDs:(NSArray *)IDs; | |
- (BOOL)resetPersistentStoreOnStoreName:(NSString *)name; | |
- (void)save; | |
- (NSManagedObject *)newObjectOfEntity:(NSString *)name; | |
- (NSArray *)objectsOfEntity:(NSString *)name withPredicate:(NSPredicate *)predicate andSortDecriptors:(NSArray *)sortDescriptors; |
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
[view extend:^(UIView* view) { | |
// TODO: Subviews here | |
}]; |
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
// | |
// ParamBuilder.h | |
// Petbox | |
// | |
// Created by Алексей Демедецкий on 02.03.12. | |
// Copyright (c) 2012 Ciklum. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
NewerOlder