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
| Personal Hub Ideas (work in progress) | |
| features: | |
| * get RSS updates/twitter timeline/emails/notifications/search alerts/... | |
| * remove duplicates/copy&paste articles | |
| * server based - to be able to read from desktop/iphone | |
| * easy to import/export data - apml | |
| * quick glance - see quickly if it is worth reading now (tag cloud sorted by occurrence) | |
| * postrank - highlight important items (see postrank.com) and discover new sources | |
| * easy to bookmark/share. |
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
| - (UIColor *) getRandomColor { | |
| return [UIColor colorWithRed:(arc4random()%100)/(float)100 | |
| green:(arc4random()%100)/(float)100 | |
| blue:(arc4random()%100)/(float)100 | |
| alpha: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
| - (id) init { | |
| self = [super init]; | |
| if (self != nil) { | |
| } | |
| return self; | |
| } |
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
| - (id) initWithFrame:(CGRect)frame { | |
| self = [super initWithFrame:frame]; | |
| if (self != nil) { | |
| } | |
| return self; | |
| } |
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
| self.view = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]]; | |
| [self.view setBackgroundColor:[UIColor redColor]]; |
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
| UIView *container = [[UIView alloc] initWithFrame:rect]; | |
| // radius | |
| container.layer.cornerRadius = 5; | |
| // shadow path | |
| container.layer.cornerRadius = 20; | |
| container.layer.shadowColor = [[UIColor blackColor] CGColor];; | |
| container.layer.masksToBounds = NO; | |
| container.layer.shadowOffset = CGSizeMake(0, -10); | |
| container.layer.shadowOpacity = 0.4; |
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
| # Created by http://www.gitignore.io | |
| ### Objective-C ### | |
| # OS X | |
| .DS_Store | |
| # Xcode | |
| build/ | |
| *.pbxuser |
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
| self.layer.shadowColor = [UIColor blackColor].CGColor; | |
| self.layer.shadowOpacity = 0.4; | |
| self.layer.shadowRadius = 5; | |
| self.layer.shadowOffset = CGSizeMake(5.0f, 5.0f); |
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
| self.layer.shadowColor = [[UIColor blackColor] CGColor]; | |
| self.layer.masksToBounds = NO; | |
| self.layer.shadowOffset = CGSizeMake(5, 5); | |
| self.layer.shadowOpacity = 0.4; | |
| CGPathRef shadowPath = [UIBezierPath bezierPathWithRect:CGRectInset(self.layer.bounds, 0, 0)].CGPath; | |
| self.layer.shadowPath = shadowPath; |
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
| dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_LOW, 0), ^{ | |
| // stuff to do in the background | |
| dispatch_async(dispatch_get_main_queue(), ^{ | |
| // stuff to do on the main thread | |
| }); |
OlderNewer