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
rake db:drop db:create db:migrate RAILS_ENV=test | |
bundle exec rspec . | |
shift+command+'R' |
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
mbcoll | |
- (id)viewController | |
{ | |
UIResponder *nextResponder =[[self superview] nextResponder]; | |
if ([nextResponder isKindOfClass:[StoreListViewController class]]) { | |
return (StoreListViewController*)nextResponder; | |
} | |
else if ([nextResponder isKindOfClass:[OfferListViewController class]]){ | |
return (OfferListViewController*)nextResponder; |
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
1.get center of map coordinate | |
CGPoint point = mapView.center; | |
CLLocationCoordinate2D coor = [mapView.projection coordinateForPoint:point]; |
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
- (IBAction)loadDataButtonClicked:(id)sender { | |
if (_scaledDown) { | |
[self _beginReleaseAnimation]; | |
} | |
[_delegate draggableViewTouched:self]; | |
self.hideBtn.hidden = YES; | |
} | |
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event | |
{ |
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
+(int)compareOneDay:(NSDate *)oneDay withAnotherDay:(NSDate *)anotherDay | |
{ | |
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; | |
[dateFormatter setDateFormat:@"dd-MM-yyyy"]; | |
NSString *oneDayStr = [dateFormatter stringFromDate:oneDay]; | |
NSString *anotherDayStr = [dateFormatter stringFromDate:anotherDay]; | |
NSDate *dateA = [dateFormatter dateFromString:oneDayStr]; | |
NSDate *dateB = [dateFormatter dateFromString:anotherDayStr]; | |
NSComparisonResult result = [dateA compare:dateB]; | |
NSLog(@"date1 : %@, date2 : %@", oneDay, anotherDay); |
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 tag 1.0.6 | |
git push --tags |
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
ThinkingSphinx::ConnectionError rails | |
rake ts:rebuild |
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
ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/.rvm/bin/subl |
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
brew uninstall jpeg | |
brew install jpeg | |
brew uninstall libtool | |
brew install libtool |
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
gem 'active_admin_editor' |