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
https://en.wikipedia.org/wiki/Servant_leadership – Wiki | |
https://www.youtube.com/watch?v=vnRAQYmsV1g - Доклад Георгия | |
https://www.greenleaf.org/what-is-servant-leadership/ - Сайт Центра Роберта Гринлифа | |
https://zillion.net/ru/blog/539/situatsionnoie-lidierstvo-4-stilia-rukovodstva-i-4-stiepieni-razvitiia-sotrudnikov - Ситуационное лидерство + модель зрелости команд | |
https://twitter.com/DevAlloy – мой твиттер |
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
🚀 |
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
// Как сгенерировать obfuscatedSecretKey[] из uuid, который мы хотим захардкодить | |
- (void)generateString { | |
/** | |
* @author Цыганов Станислав | |
* | |
* Шаг 1. Получаем hex-овый массив | |
*/ | |
NSString *myString = @"Hello"; | |
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 *)uuidForToken { | |
unsigned char obfuscatedSecretKey[] = {0xa, 0xd7, 0x55, 0x2f, 0x94}; | |
// Get the SHA1 of a class name, to form the obfuscator. | |
unsigned char obfuscator[CC_SHA1_DIGEST_LENGTH]; | |
NSData *className = [NSStringFromClass([self class]) | |
dataUsingEncoding:NSUTF8StringEncoding]; | |
CC_SHA1(className.bytes, (CC_LONG)className.length, obfuscator); | |
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)testFeedMapperStrongParentChildClustersRelations { | |
// given | |
NSInteger expectedCountOfRootClusters = 10; | |
// when | |
[self.clusterIdsMapper mapServerResponse:self.regularServerResponse mappingContext:@{RDNMapperClustersTopicNameKey : RDNFirstTopicIdentifier}]; | |
NSArray *cachedClustersArray = [RDNCluster MR_findAll]; | |
// then | |
NSMutableSet *clusterIdsSet = [NSMutableSet new]; |
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
{ | |
"clusters": [ | |
{ | |
"id": 30655491, | |
"related": [ | |
{ | |
"id": 30655877, | |
"title": "СБУ силой выслала в Москву корреспондента Первого канала" | |
}, |
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
+ (EKManagedObjectMapping *)objectMapping { | |
return [EKManagedObjectMapping mappingForEntityName:NSStringFromClass(self) withBlock:^(EKManagedObjectMapping *mapping) { | |
mapping.primaryKey = @"clusterId"; | |
[mapping mapPropertiesFromArray:@[@"title"]]; | |
[mapping mapPropertiesFromDictionary:@{ | |
@"id" : @"clusterId" | |
}]; | |
[mapping mapKeyPath:@"related" toProperty:@"childClusters" withValueBlock:^id(NSString *key, NSArray * relatedArray, NSManagedObjectContext *context) { | |
EKManagedObjectMapping *clusterMapping = [RDNCluster relatedObjectMapping]; |
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 "ViewController.h" | |
// "Change size" button const | |
#define BUTTON_WIDTH 120 | |
#define BUTTON_HEIGHT 40 | |
#define IMAGE_CAP_INSET_TOP 30.0 | |
#define IMAGE_CAP_INSET_LEFT 30.0 | |
#define IMAGE_CAP_INSET_BOTTOM 30.0 | |
#define IMAGE_CAP_INSET_RIGHT 30.0 |