Skip to content

Instantly share code, notes, and snippets.

@raduraducu
raduraducu / Pulse.md
Created January 31, 2024 17:20 — forked from kieranb662/Pulse.md
[Pulse ViewModifier] Pulse SwiftUI ViewModifier #SwiftUI #ViewModifier

Circle Pulse

@raduraducu
raduraducu / Pulse.md
Created January 31, 2024 17:20 — forked from kieranb662/Pulse.md
[Pulse ViewModifier] Pulse SwiftUI ViewModifier #SwiftUI #ViewModifier

Circle Pulse

@raduraducu
raduraducu / !README.md
Created June 18, 2018 10:22 — forked from mayoff/!README.md
Debugging Objective-C blocks in lldb

The attached lldb command pblock command lets you peek inside an Objective-C block. It tries to tell you where to find the source code for the block, and the values captured by the block when it was created.

Consider this example program:

#import <Foundation/Foundation.h>

@interface Foo: NSObject
@end

@implementation Foo

@raduraducu
raduraducu / new_gist_file
Created September 16, 2013 11:11
file name from descriptor
char *buf;
buf = (char *)calloc(1024, sizeof(char));
fcntl(STDERR_FILENO, F_GETPATH, buf);
printf("----------------- old log path: %s\n", buf);
int retValue = dup2(fd, STDERR_FILENO);
free(buf);
@raduraducu
raduraducu / new_gist_file
Created July 8, 2013 07:31
Apple Service Diagnostic Disks
Apple Service Diagnostic Disks 25 GB [Original]
Applications : Mac : English
ASD Dual Boot 2.1.5 (2003)
PowerBook G4 (12-inch), PowerBook G4 (17-inch), iMac (17-inch 1GHz), Power Mac G4 (FW 800), Xserve (slot load), eMac (ATI Graphics), and Power Mac G4 (Mirrored Drive Doors 2003), iMac (USB 2.0), PowerBook G4 (15-inch FW800), PowerBook G4 (17-inch 1.33GHz) and PowerBook G4 (12-inch DVD)
ASD 2.5.7
@raduraducu
raduraducu / new_gist_file
Created July 1, 2013 09:05
List subfolders that contain a specific git branch
find . -type d ! -path "*git*" ! -path "*build*" -exec sh -c " cd {} && git branch | grep <branchName> && pwd" ";"