|
Variable |
Type |
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
| /** | |
| Original Code From, Md. Mahmud Ahsan, http://thinkdiff.net/mixed/base-conversion-handle-upto-36-bases/, 2008.02.28 | |
| Adapted Objective-C, Furkan Mustafa, 2013.05.28 | |
| Description: Alpha Numeric Base Conversion, Handles upto base 36 | |
| */ | |
| NSString* reverseString(NSString* original) { | |
| const char* chars = [original cStringUsingEncoding:NSASCIIStringEncoding]; | |
| int length = strlen(chars); | |
| char* new = (char*)malloc(length+1); |
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 <Objective-LevelDB/LevelDB.h> | |
| #include <mach/mach_time.h> | |
| #include <stdint.h> | |
| NSString *randomString(NSUInteger length) { | |
| NSMutableString *string = [NSMutableString stringWithCapacity:length]; | |
| for (int i = 0; i < length; i++) { | |
| [string appendFormat:@"%C", (unichar)('a' + arc4random_uniform(25))]; | |
| } | |
| return string; |
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
| // | |
| // NSDictionary+prettyPrint.m | |
| // GarageRemote | |
| // | |
| // Created by Gustaf Nilklint on 2014-09-15. | |
| // Copyright (c) 2014 Gustaf Nilklint. All rights reserved. | |
| // | |
| #import "NSDictionary+prettyPrint.h" |
OlderNewer