Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| -(BOOL)textFieldShouldReturn:(UITextField*)textField; | |
| { | |
| NSInteger nextTag = textField.tag + 1; | |
| // Try to find next responder | |
| UIResponder* nextResponder = [textField.superview viewWithTag:nextTag]; | |
| if (nextResponder) { | |
| // Found next responder, so set it. | |
| [nextResponder becomeFirstResponder]; | |
| } else { | |
| // Not found, so remove keyboard. |
| -(void)zoomToFitMapAnnotations:(MKMapView*)mapView | |
| { | |
| if([mapView.annotations count] == 0) | |
| return; | |
| CLLocationCoordinate2D topLeftCoord; | |
| topLeftCoord.latitude = -90; | |
| topLeftCoord.longitude = 180; | |
| CLLocationCoordinate2D bottomRightCoord; |
| ln -s /Volumes/MacintoshHD/Users/mike/Documents/MobileSync/Backup/ ~/Library/Application\ Support/MobileSync/Backup |
| sudo sysctl -w kern.sysv.shmmax = 1610612736 | |
| sudo sysctl -w kern.sysv.shmall = 393216 | |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| - (void) viewDidLoad | |
| { | |
| [super viewDidLoad]; | |
| self.tableView.tableFooterView = [[UIView alloc] init]; | |
| } |
| ./ffmpeg -i video_in.avi -acodec aac -ac 2 -strict experimental -ab 160k -s 624x352 -vcodec libx264 -preset slow -profile:v baseline -level 30 -maxrate 10000000 -bufsize 10000000 -b 1200k -f mp4 -threads 0 video_out_file.mp4 |
| print_r( get_defined_vars() ); |
| NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; | |
| [dateFormatter setDateFormat:@"dd-MM-yy' 'HH:mm:ss' 'Z"]; | |
| NSLog(@"%@", [dateFormatter stringFromDate:[NSDate date]]); |
| git archive master | bzip2 > ~/repo.tar.bz2 | |
| different branch | |
| git archive v2 | bzip2 > /Volumes/Data/repo.tar.bz2 | |
| extract: |