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
// | |
// Copyright © 2012 Yuri Kotov | |
// | |
extern BOOL ADVUserInterfaceIdiomIsPhone; |
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/sh | |
SAVEDIR=`pwd` | |
WORKDIR=/tmp/ipa_$RANDOM$RANDOM | |
WORKIPA=/tmp/ipa_$RANDOM$RANDOM.ipa | |
echo unpacking $1 | |
mkdir -p $WORKDIR | |
unzip "$1" -d $WORKDIR > /dev/null || exit | |
cd $WORKDIR |
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
oldIFS=$IFS | |
IFS=$'\n' | |
cd $BUILT_PRODUCTS_DIR | |
for file in `find . -type f -name *.png` | |
do | |
filename=$(basename $file) | |
filename=${filename%.*} | |
dirname=$(dirname $file) | |
if [ "${filename: -3}" == "@2x" ] |
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/sh | |
OLD_PWD="$(pwd)"; | |
#get script parameters | |
APP_BUNDLE_DIR=$1; | |
IPA_URL=$2; | |
MANIFEST_NAME=$3; | |
if [ ! -d "$APP_BUNDLE_DIR" -o ! "$IPA_URL" ]; then |
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
-(id)[FacebookAccountConfigurationPlugin publishPlugin] | |
+0 00002d70 55 pushl %ebp | |
+1 00002d71 89e5 movl %esp,%ebp | |
+3 00002d73 83ec18 subl $0x18,%esp | |
+6 00002d76 e800000000 calll 0x00002d7b | |
+11 00002d7b 58 popl %eax | |
+12 00002d7c 8b4d08 movl 0x08(%ebp),%ecx | |
+15 00002d7f 894df8 movl %ecx,0xf8(%ebp) | |
+18 00002d82 8b8805240000 movl 0x00002405(%eax),%ecx | |
+24 00002d88 894dfc movl %ecx,0xfc(%ebp) |
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
// | |
// Masks.h | |
// | |
// Created by Eugene Solodovnykov on 2/23/12. | |
// | |
#import <Foundation/Foundation.h> | |
NSInteger setBits(NSInteger mask, NSInteger bitMask); | |
NSInteger clearBits(NSInteger mask, NSInteger bitMask); |
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
// | |
// Flipper.h | |
// FlipLib | |
// | |
// Created by Eugene Solodovnykov on 11/30/10. | |
// Copyright 2010 . All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#import "FLMultiStepAnimation.h" |
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
- (id)perform:(NSURL *)url data:(id)data error:(NSError **)error { | |
static NSString * const kXRegionHeaderField = @"X-Region"; | |
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url]; | |
[request addValue:@"application/json" forHTTPHeaderField:@"Content-Type"]; | |
[request addValue:@"application/json" forHTTPHeaderField:@"Assept"]; | |
[request addValue:[UserDataKeeper sharedDataKeeper].countryCode forHTTPHeaderField:kXRegionHeaderField]; | |
[request setHTTPMethod:data ? @"POST" : @"GET"]; |
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 TVRemote : NSObject | |
@property (nonatomic, retain) TVRemoteAbstract *currentRemote; | |
- (void)createSocketRemote; | |
@end | |
@implementation TVRemote | |
- (void)createSocketRemote { | |
self.currentRemote = [[TVRemoteSocket alloc] init]; | |
} |