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
git log --all -p file_path |
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
// remove stuff from core data before fetching again | |
RKObjectManager *sharedObjectManager = [RKObjectManager sharedManager]; | |
NSError *err = nil; | |
[sharedObjectManager.managedObjectStore resetPersistentStores:&err]; | |
self.searchCollectionView.hidden = YES; | |
self.fetchedResultsController = nil; | |
[self.searchCollectionView reloadData]; |
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
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath | |
{ | |
static NSString *kStandardCellID = @"StandardCell"; | |
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:kStandardCellID]; | |
if (cell.accessoryView == nil) { | |
// Only configure the Checkbox control once. | |
cell.accessoryView = [[Checkbox alloc] initWithFrame:CGRectMake(0, 0, 25, 43)]; | |
cell.accessoryView.opaque = NO; | |
cell.backgroundColor = [UIColor clearColor]; |
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
subl `bundle show sitemap_generator` |
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
testing -> code -> testing -> code .... |
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
http://stackoverflow.com/questions/2894321/how-to-access-the-price-of-a-product-in-skpayment |
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.indicator.hidden = NO; | |
[self.indicator startAnimating]; | |
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ | |
// 原代码块二 | |
NSURL * url = [NSURL URLWithString:@"http://www.youdao.com"]; | |
NSError * error; | |
NSString * data = [NSString stringWithContentsOfURL:url encoding:NSUTF8StringEncoding error:&error]; | |
if (data != nil) { | |
// 原代码块三 |
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.tableView.tableFooterView = [[UIView alloc] init]; |
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
bundle exec rails c production | |
tail -f production.log |
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
http://tech.glowing.com/cn/practice-in-uiscrollview/ |