Skip to content

Instantly share code, notes, and snippets.

View Akhrameev's full-sized avatar

Pavel Akhrameev Akhrameev

  • Picsart
  • Yerevan, Armenia
View GitHub Profile
@Akhrameev
Akhrameev / NSNotificationCenter+AllObservers.h
Last active August 29, 2015 14:02 — forked from 0xced/NSNotificationCenter+AllObservers.m
removeObserver swizzling added + SWIZZLE_NSNOTIFICATIONCENTER + separate .h and .m files
#import <Foundation/Foundation.h>
@interface NSNotificationCenter (AllObservers)
- (NSSet *) my_observersForNotificationName:(NSString *)notificationName;
@end
//
// CellBackgroundView.h
//
//
#import <UIKit/UIKit.h>
typedef enum {
CellPositionTop,
CellPositionMiddle,
TARGET="$PROJECT_DIR/$EXECUTABLE_NAME/$EXECUTABLE_NAME-Info.plist"
echo $TARGET
if [ ! -f "$TARGET" ]; then
echo "missing file $TARGET"
exit 1;
fi
# the perl regex splits out the last part of a build number (ie: 1.1.1) and increments it by one
# if you have a build number that is more than 3 components, add a '\.\d+' into the first part of the regex.