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 UIKit | |
| import PlaygroundSupport | |
| var addresses = Set<String>() | |
| class MyCell: UITableViewCell { | |
| required init?(coder: NSCoder) { | |
| super.init(coder: coder) | |
| } |
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
| ee_TG | Ewe (Togo) | |
|---|---|---|
| kam_KE | Kamba (Kenya) | |
| es_HN | Spanish (Honduras) | |
| ml_IN | Malayalam (India) | |
| ro_MD | Romanian (Moldova) | |
| kab_DZ | Kabyle (Algeria) | |
| es_CO | Spanish (Colombia) | |
| es_PA | Spanish (Panama) | |
| az_Latn | Azerbaijani (Latin) | |
| en_NZ | English (New Zealand) |
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
| ### Keybase proof | |
| I hereby claim: | |
| * I am alladinian on github. | |
| * I am alladinian (https://keybase.io/alladinian) on keybase. | |
| * I have a public key ASBATeqw6gBMi5djUXQFUyvNP0XVYH9mzllWv7qPsztiqQo | |
| To claim this, I am signing this object: |
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 A : NSObject | |
| - (void)test; | |
| @end | |
| @implementation A | |
| - (void)test { | |
| NSLog(@"A"); | |
| } | |
| @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
| {"status_code": 666, | |
| "body": | |
| {"list":[{"name":"Bobis"}]} | |
| } |
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> | |
| int main(int argc, char *argv[]) { | |
| @autoreleasepool { | |
| NSArray *array = [[NSMutableArray alloc] initWithObjects: @"abc", @"def", nil]; | |
| for (int i = 0; i < 100; i++) { | |
| int randomArrayIndex = arc4random() % array.count; | |
| NSLog(@"%@", array[randomArrayIndex]); | |
| } |
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
| ######################### | |
| # .gitignore file for Xcode4 / OS X Source projects | |
| # | |
| # Version 2.0 | |
| # For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects | |
| # | |
| # 2013 updates: | |
| # - fixed the broken "save personal Schemes" | |
| # | |
| # NB: if you are storing "built" products, this WILL NOT WORK, |
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 NSMutableArray (badidea) | |
| - (NSArray *) upto:(NSUInteger)n; | |
| @end | |
| @implementation NSMutableArray (badidea) | |
| - (NSArray *) upto:(NSUInteger)n | |
| { | |
| if (n==0) return self.reverseObjectEnumerator.allObjects; |
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
| NSArray *documentsSearchPaths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); | |
| NSString *documentsDirectory = [documentsSearchPaths count] == 0 ? nil : [documentsSearchPaths objectAtIndex:0]; |
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
| array.reverseObjectEnumerator.allObjects |