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
xcodebuild -workspace XYZ -target xyzApp | |
## это - хрень. Не делай так | |
xcodebuild -project XYZ.xcodeproj -scheme abcApp | |
## это - тоже хрень. | |
xcodebuild -workspace XYZ -scheme abcApp | |
## так - нормально, но нужна shared scheme | |
xcodebuild -project XYZ.xcodeproj -target xyzApp |
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
dodikk$ xcodebuild -workspace HealthJoy_iPhone_UnitTests.xcworkspace -scheme "HealthJoyAuthentication-UnitTest-CI" -sdk iphonesimulator test | tee xcodebuild.log | |
Build settings from command line: | |
SDKROOT = iphonesimulator8.1 | |
=== BUILD TARGET HealthJoyAuthentication OF PROJECT HealthJoyAuthentication WITH CONFIGURATION Debug === | |
Check dependencies |
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)importMessageFromWebSocket:(id<HJMessage>)singleMessage | |
{ | |
NSPredicate* findExistingMessage = | |
[NSPredicate predicateWithFormat: @"(identifier == %@) && (conversation.identifier == %@)", | |
singleMessage.messageId, | |
singleMessage.roomId]; | |
NSManagedObjectContext* context = [NSManagedObjectContext MR_contextForCurrentThread]; |
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 | |
LAUNCH_DIR=$PWD | |
cd .. | |
REPOSITORY_ROOT=$PWD | |
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
2015-03-04 16:43:36.566 [7773:1208001] Non Zero 1 | |
2015-03-04 16:43:36.567 [7773:1208001] Non Zero 2 |
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 x; | |
BOOL* px = reinterpret_cast<BOOL*>(&x); | |
BOOL castedAndTruncated = *px; | |
// так - точно “обрежет”. Но чтобы compiler такое сам творил… |
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)navigateToMainMenu:(UINavigationController *)mainMenuViewController | |
{ | |
id<HJDateOfBirthSurveyLogger> logger = self.dobSurveyLogger; | |
dispatch_async(dispatch_get_main_queue(), ^void() | |
{ | |
[logger logNavigatingToMainMenu]; | |
UIWindow *window = [UIApplication sharedApplication].keyWindow; |
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
NSString *firstName = ... | |
NSString *lastName = ... | |
ABRecordRef record = ABPersonCreate(); | |
ABRecordSetValue(record, kABPersonFirstNameProperty, | |
(CFStringRef)firstName, NULL); | |
ABRecordSetValue(record, kABPersonLastNameProperty, | |
(CFStringRef)lastName, NULL); | |
NSString *displayName = (NSString *)ABRecordCopyCompositeName(record); | |
CFRelease(record); |
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
Ну условно говоря: | |
Модеь: АААА! Давление 1960 на 1230!!! | |
Viewmodel : состояние лампочки: красное | |
View; Окей, отобразим ! красным | |
# и в обратную сторону | |
(Пользователь жмет педальку) | |
View : -> ViewModel | |
Слушай, тут пользователь жмякнул педальку. |
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
//:configuration = Debug | |
GCC_WARN_PEDANTIC = YES | |
GCC_TREAT_WARNINGS_AS_ERRORS = YES | |
CLANG_WARN_EMPTY_BODY = YES | |
GCC_WARN_FOUR_CHARACTER_CONSTANTS = YES | |
CLANG_WARN_BOOL_CONVERSION = YES | |
CLANG_WARN_CONSTANT_CONVERSION = YES | |
GCC_WARN_64_TO_32_BIT_CONVERSION = YES | |
CLANG_WARN_ENUM_CONVERSION = YES | |
CLANG_WARN_INT_CONVERSION = YES |