This file contains hidden or 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 | |
# This script builds the iOS and Mac openSSL libraries | |
# Download openssl http://www.openssl.org/source/ and place the tarball next to this script | |
# Credits: | |
# https://github.com/st3fan/ios-openssl | |
# https://github.com/x2on/OpenSSL-for-iPhone/blob/master/build-libssl.sh | |
This file contains hidden or 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)test_group { | |
dispatch_queue_t queue = dispatch_queue_create("diamond-queue", DISPATCH_QUEUE_CONCURRENT); | |
dispatch_group_t group = dispatch_group_create(); | |
for (int i = 0; i < 10; i++) { | |
// dispatch_group_enter(group); | |
dispatch_sync(queue, ^{ | |
dispatch_group_enter(group); | |
NSLog(@"i: [%@]__LINE__: %@", @(i), @(__LINE__)); |
This file contains hidden or 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
@class TTUserObject; | |
@interface TTFriendsCollection : NSObject | |
- (void)addFriend:(TTUserObject *)user; | |
- (void)removeFriend:(TTUserObject *)user; | |
@end |
This file contains hidden or 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 <Foundation/Foundation.h> | |
@interface TTUserObject : NSObject | |
- (void)postNicknameDidChangedNotification; | |
@end |
This file contains hidden or 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
#include "TTCounter.h" | |
#include "TTDislikeCounter.h" | |
#include "TTLikeCounter.h" | |
void printTotalCounter() { | |
printf("total counter: %d", totalCounter); | |
} | |
int main(int argc, char *argv[]) { | |
addDislikeToTotalCounter(); |
NewerOlder