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
Configuration (idea.config.path): | |
~/Library/Preferences/<PRODUCT><VERSION> | |
Caches (idea.system.path): | |
~/Library/Caches/<PRODUCT><VERSION> | |
Plugins (idea.plugins.path): | |
~/Library/Application Support/<PRODUCT><VERSION> | |
Logs (idea.log.path): | |
~/Library/Logs/<PRODUCT><VERSION> |
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
#ifdef DEBUG | |
# define DLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__) | |
#else | |
# define DLog(...) | |
#endif |
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)viewDidLayoutSubviews { | |
[super viewDidLayoutSubviews]; | |
DLog(@"%@", NSStringFromCGRect(self.button.frame)); | |
DLog(@"%@", NSStringFromCGRect(self.label.frame)); | |
} |
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
In your Genymotion Android emulator… | |
Settings -> Wifi -> Press and hold your active network | |
Select “Modify Network” | |
Select “Show Advanced Options” | |
Select “Proxy Settings -> Manual” | |
Set your Proxy to: 10.0.3.2 (Genymotion’s special code for the local workstation) | |
Set your Port to: 8888 | |
Press Save |
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
tcpdump -s 0 -A 'tcp dst port 80 and (tcp[((tcp[12:1] & 0xf0) >> 2):4] = 0x504f5354)' |
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
UITapGestureRecognizer *recognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleMenuTap:)]; | |
[menu addGestureRecognizer:recognizer]; | |
- (void)handleMenuTap:(UITapGestureRecognizer *)recognizer { | |
[self selectTabAtIndex:recognizer.view.tag]; | |
} |
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
[UIView animateWithDuration:0.3f animations:^{ | |
self.tabMenuIndicator.frame = CGRectMake(200, 0, 50, 5); | |
}]; | |
- (void)showFilter { | |
self.mainVC.viewFilterMask.hidden = NO; | |
self.mainVC.viewFilterMask.alpha = 0; |
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
CGRect menuScrollViewRect = CGRectMake( | |
menuRect.origin.x - (tabMenuRect.size.width - menuRect.size.width) / 2, | |
menuRect.origin.y, | |
tabMenuRect.size.width, | |
tabMenuRect.size.height | |
); | |
[menuScrollView scrollRectToVisible:menuScrollViewRect animated:YES]; |
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
self.automaticallyAdjustsScrollViewInsets = NO; |
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
self.tabMenuFont = [UIFont systemFontOfSize:16]; | |
self.tabMenuSelectedFont = [UIFont systemFontOfSize:16]; | |
self.tabMenuColor = HEXCOLOR(0xA1A3A8); | |
self.tabMenuSelectedColor = HEXCOLOR(0x333333); | |
self.tabMenuPadding = 0; | |
self.tabMenuMinimumPadding = 0; | |
self.tabMenuIndicatorHeight = 2; | |
self.tabMenuIndicatorColor = HEXCOLOR(0xF74443); | |
self.tabMenuIndicatorRadius = 1; | |
self.tabMenuIndicatorWidth = 0; |
OlderNewer