by Marco Cattai
Search all the files/folder with that name and remove them
find . -name "FILE-TO-FIND"-exec rm -rf {} \;
| // | |
| // MoreWarnings.xcconfig | |
| // | |
| // Created by Steven Fisher: | |
| // http://tewha.net/2010/11/xcode-warnings/ | |
| // See also: | |
| // http://boredzo.org/blog/archives/2009-11-07/warnings | |
| // | |
| GCC_WARN_CHECK_SWITCH_STATEMENTS = YES |
| self.profilePictureView.profileID = user.id; | |
| double delayInSeconds = 2.0; | |
| dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayInSeconds * NSEC_PER_SEC)); | |
| dispatch_after(popTime, dispatch_get_main_queue(), ^(void){ | |
| UIImageView *imageView = nil; | |
| for (UIView *subview in [self.profilePictureView subviews]) { | |
| if ([subview isKindOfClass:[UIImageView class]]) { | |
| imageView = (UIImageView *)subview; |
| @synchronized(self) { | |
| NSLog(@"%i", 1); | |
| dispatch_queue_t queue = dispatch_queue_create("com.albertodebortoli.serial_queue", DISPATCH_QUEUE_SERIAL); | |
| dispatch_sync(queue, ^{ | |
| NSLog(@"%i", 2); | |
| @synchronized(self) { | |
| NSLog(@"%i", 3); | |
| } | |
| NSLog(@"%i", 4); | |
| }); |
| - (void)test_Given<#state#>_When<#action#>_Then<#result#> { | |
| XCTAssert(); | |
| } |
| git shortlog -s -n | |
| git log --author="__YOUR_NAME_HERE__" --pretty=tformat: --numstat | awk '{ add += $1 ; subs += $2 ; loc += $1 - $2 } END { printf "added lines: %s removed lines : %s total lines: %s\n",add,subs,loc }' - | |
| static const char *getPropertyType(objc_property_t property) { | |
| const char *attributes = property_getAttributes(property); | |
| char buffer[1 + strlen(attributes)]; | |
| strcpy(buffer, attributes); | |
| char *state = buffer, *attribute; | |
| while ((attribute = strsep(&state, ",")) != NULL) { | |
| if (attribute[0] == 'T' && attribute[1] != '@') { | |
| NSString *name = [[NSString alloc] initWithBytes:attribute + 1 length:strlen(attribute) - 1 encoding:NSASCIIStringEncoding]; | |
| return (const char *)[name cStringUsingEncoding:NSASCIIStringEncoding]; | |
| } |
| + (UIScrollView *)_trackingScrollView:(id)selfObject { | |
| if ([selfObject respondsToSelector:@selector(trackingScrollView)]) { | |
| return objc_msgSend(selfObject, @selector(trackingScrollView)); | |
| } | |
| unsigned int proprtiesCount; | |
| objc_property_t *properties = class_copyPropertyList([self class], &proprtiesCount); | |
| for (int i = 0; i < proprtiesCount; i++) { |
| # Xcode | |
| build/* | |
| *.pbxuser | |
| !default.pbxuser | |
| *.mode1v3 | |
| !default.mode1v3 | |
| *.mode2v3 | |
| !default.mode2v3 | |
| *.perspectivev3 | |
| !default.perspectivev3 |
| rm -rf ~/Library/Developer/Xcode/DerivedData/JUSTEAT-*/Build/Products/Debug-iphoneos/*.appex/ |