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 | |
# Delete by finding round bracket #2 | |
xcrun simctl list | cut -d "(" -f2 | cut -d ")" -f1 | grep -E ".+-.+-.+-.+" | grep -v "^com" | xargs xcrun simctl delete | |
# Delete by finding round bracket #3 | |
xcrun simctl list | cut -d "(" -f3 | cut -d ")" -f1 | grep -E ".+-.+-.+-.+" | grep -v "^com" | xargs xcrun simctl delete | |
# Delete by finding round bracket #4 | |
xcrun simctl list | cut -d "(" -f4 | cut -d ")" -f1 | grep -E ".+-.+-.+-.+" | grep -v "^com" | xargs xcrun simctl delete |
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
[debug] [XCUITest] Executing command 'proxyReqRes' | |
[debug] [JSONWP Proxy] Proxying [GET /wd/hub/session/24ca4e72-1cf7-43e2-b0a3-c7975550dfbf/element/BEBB6041-774D-459F-A8FC-7D3831E4D354/displayed] to [GET http://localhost:8100/session/88E1DAFE-F86D-4B5C-9E13-1FA438A82650/element/BEBB6041-774D-459F-A8FC-7D3831E4D354/displayed] with body: {} | |
[debug] [JSONWP Proxy] Got response with status 200: "{\n \"value\" : true,\n \"sessionId\" : \"88E1DAFE-F86D-4B5C-9E13-1FA438A82650\",\n \"status\" : 0\n}" | |
[JSONWP Proxy] Replacing sessionId 88E1DAFE-F86D-4B5C-9E13-1FA438A82650 with 24ca4e72-1cf7-43e2-b0a3-c7975550dfbf | |
[HTTP] <-- GET /wd/hub/session/24ca4e72-1cf7-43e2-b0a3-c7975550dfbf/element/BEBB6041-774D-459F-A8FC-7D3831E4D354/displayed 200 177 ms - 76 | |
[HTTP] --> POST /wd/hub/session/24ca4e72-1cf7-43e2-b0a3-c7975550dfbf/touch/perform {"actions":[{"action":"press","options":{"element":"BEBB6041-774D-459F-A8FC-7D3831E4D354"}},{"action":"wait","options":{"ms":2}},{"action":"release","options":{}}]} | |
[debug] [MJSONWP] Ca |
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
// | |
// UIImageView+RestaurantWebImage.h | |
// DinerApp | |
// | |
// Created by ALeszkiewicz on 6/21/16. | |
// Copyright © 2016 GrubHub Inc. All rights reserved. | |
// | |
#import <UIKit/UIKit.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
ibrary/Caches/Snapshots | |
2015-06-30 17:58:50.852 <Notice> ======== HNGConfigurationService AppStore, Beta, production Hinge, 3.5.0 (10356) 2015.06.30, iPhone6,1 8.3 ======== | |
2015-06-30 17:58:51.022 <Notice> Breadcrumb: Using configuration: Beta | |
2015-06-30 17:58:51.088 <Notice> Breadcrumb: begin transaction UARegistration | |
2015-06-30 17:58:51.414 <Error> -[DatabaseManager initialisePersistentStore] [Line 196] [NSCocoaErrorDomain(259)] The operation couldn’t be completed. (Cocoa error 259.) { | |
NSSQLiteErrorDomain = 11; | |
NSUnderlyingException = "Fatal error. The database at /var/mobile/Containers/Data/Application/DB1255CB-0CE6-4572-8130-DBD693B8AFFF/Documents/hinge330.sqlite is corrupted. SQLite error code:11, 'database disk image is malformed'"; | |
} | |
2015-06-30 17:58:51.423 <Notice> Breadcrumb: logged error:The operation couldn’t be completed. (Cocoa error 259.) | |
2015-06-30 17:58:51.433 <Warning> --- Deleting Store: file:///var/mobile/Containers/Data/Application/DB1255CB-0CE6-4572-8130-DBD693B8AFFF/Documen |
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 | |
# run_scan_build.sh | |
# Hinge | |
# | |
# Created by al on 27/05/2015. | |
# Copyright (c) 2015 Hinge, Inc. All rights reserved. | |
CLANG_CHECK="Xcode" | |
XCODE_COMPILER_LOCATION="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" |
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
//RCCoreData helper class | |
+(BOOL) onMainThread:(void (^)(void))mainThreadOperation | |
{ | |
BOOL isMainThread = [NSThread isMainThread]; | |
NSAssert(isMainThread, @"Should be on main thread"); | |
if (isMainThread) { | |
mainThreadOperation(); | |
} else { | |
dispatch_async(dispatch_get_main_queue(), mainThreadOperation); |
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
post_install do |installer| | |
project = Xcodeproj::Project.open('MeetupApp.xcodeproj') | |
config_mapping = { | |
:Debug => 'Configuration/Debug.xcconfig' | |
} | |
set_xcconfig_reference(project,'MeetupApp','Debug','Configuration/Debug.xcconfig') | |
end | |
def set_xcconfig_reference(project, target_name, config_name, xcconfig_name) |
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 "NSURL+MUAdditions.h" | |
@implementation NSURL (MUAdditions) | |
-(NSURL*) URLByAppendingQueryString:(NSString*)queryString | |
{ | |
NSString *absoluteString = [self absoluteString]; | |
NSInteger startOfQueryString = [absoluteString rangeOfString:@"?"].location; | |
NSInteger startOfFragment = [absoluteString rangeOfString:@"#"].location; |
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 <XCTest/XCTest.h> | |
typedef id (^OperationToExchangeForClass)(void); | |
@interface RCTestCase : XCTestCase | |
- (void) exchangeClassMethodForClass:(Class)clazz selector:(SEL)selector operation:(OperationToExchangeForClass)operation; | |
@property (nonatomic) NSBundle *unitTestBundle; |
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
int toIndex=0; | |
[self.tableView beginUpdates]; | |
for (NSDictionary* reddit in sortedReddits) { | |
NSString *displayName = [reddit valueForKeyPath:@"data.display_name"]; | |
NSUInteger fromIndex = | |
[_reddits indexOfObjectPassingTest:^BOOL(NSDictionary *obj, NSUInteger idx, BOOL *stop) { | |
if ([[obj valueForKeyPath:@"data.display_name"] isEqualToString:displayName] ) { | |
*stop = YES; | |
return YES; | |
} |
NewerOlder