Skip to content

Instantly share code, notes, and snippets.

@hhanesand
hhanesand / gist:3747430b18d12c94fffe
Created March 27, 2015 02:28
PFQueryTableViewController subclass
@implementation GLQueryTableViewController
- (instancetype)initWithStyle:(UITableViewStyle)style localDatastoreTag:(NSString *)tag {
self.localDatastoreTag = tag;
return [self initWithStyle:style className:nil];
}
- (void)loadObjects:(NSInteger)page clear:(BOOL)clear {
NSAssert(!self.paginationEnabled, @"GLQueryTableViewController can not be used with pagination enabled.");
@hhanesand
hhanesand / deletelines.txt
Created August 10, 2015 13:04
Delete first 8 lines of a file with extension. Useful for deleting the copyright comments that xcode generates. In this case the NH is the file prefix and .h and .m are the accepted extensions.
find -regextype posix-extended -regex '.*?/NH.*?\.(h|m)' -exec sed -i -e '1,8d' {} \;
@hhanesand
hhanesand / generate_makefile.sh
Created September 8, 2015 13:09
Create makefile
rm GNUmakefile
touch GNUmakefile
echo -e 'include $(GNUSTEP_MAKEFILES)/common.make' >> GNUmakefile
echo -e "TOOL_NAME =" $1 "\n" >> GNUmakefile
echo -e "$1_OBJC_FILES = "$(find -name "*.m" | xargs) >> GNUmakefile
echo -e "$1_HEADER_FILES = "$(find -name "*.h" | xargs)"\n" >> GNUmakefile
echo -e "ADDITIONAL_CPPFLAGS = -Wall -Wno-import" >> GNUmakefile
echo 'include $(GNUSTEP_MAKEFILES)/tool.make' >> GNUmakefile
* thread #7: tid = 0x230fc1, 0x00000001990b3f48 libobjc.A.dylib`objc_exception_throw, queue = 'com.apple.root.default-qos', stop reason = breakpoint 1.1
frame #0: 0x00000001990b3f48 libobjc.A.dylib`objc_exception_throw
frame #1: 0x0000000184500e90 CoreFoundation`+[NSException raise:format:] + 120
* frame #2: 0x00000001007f3f74 Parse`-[PFOfflineStore updateObjectIdForObject:oldObjectId:newObjectId:](self=0x0000000154e72df0, _cmd="updateObjectIdForObject:oldObjectId:newObjectId:", object=0x00000001560da370, oldObjectId=0x0000000000000000, newObjectId=@"Ya5KDVHpCg") + 516 at PFOfflineStore.m:957
frame #3: 0x00000001007bd754 Parse`-[PFObject _notifyObjectIdChangedFrom:toObjectId:](self=0x00000001560da370, _cmd="_notifyObjectIdChangedFrom:toObjectId:", fromObjectId=0x0000000000000000, toObjectId=@"Ya5KDVHpCg") + 260 at PFObject.m:1882
frame #4: 0x00000001007bd22c Parse`-[PFObject set_state:](self=0x00000001560da370, _cmd="set_state:", state=0x000000015622a320) + 456 at PFObject.m:1839
frame #
function saveAllWithPromise(items) {
var saveAllPromise = new Parse.Promise();
Parse.Object.saveAll(items, {
success: function (items) {
saveAllPromise.resolve(items);
}, error: function (error) {
saveAllPromise.reject(error);
}
});
override var enabled: Bool = true {
didSet {
if self.mimicFillColorOfSystemButton {
self.updateButtonStateTo(self.enabled)
}
}
}
* thread #1: tid = 0x63c6e, 0x00000001820aff48 libobjc.A.dylib`objc_exception_throw, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
frame #0: 0x00000001820aff48 libobjc.A.dylib`objc_exception_throw
frame #1: 0x0000000182a4ac80 CoreFoundation`+[NSException raise:format:arguments:] + 108
frame #2: 0x00000001833d01c0 Foundation`-[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] + 88
* frame #3: 0x000000010025306c ReactiveCocoa`__28-[RACSignal(.block_descriptor=<unavailable>, value=0xb000000000000012) not]_block_invoke + 456 at RACSignal+Operations.m:1285
frame #4: 0x0000000100256d54 ReactiveCocoa`__29-[RACStream(.block_descriptor=0x000000015fe46bd0, value=0xb000000000000012) map:]_block_invoke + 84 at RACStream.m:94
frame #5: 0x0000000100256590 ReactiveCocoa`__36-[RACStream(.block_descriptor=0x000000015fe5a800, value=0xb000000000000012, stop=NO) flattenMap:]_block_invoke_2 + 108 at RACStream.m:74
frame #6: 0x0000000100266d18 ReactiveCocoa`__29-[RAC
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ACPI</key>
<dict>
<key>DSDT</key>
<dict>
<key>Debug</key>
<false/>
7/8/16 10:53:09.000 kernel[0]: AppleALC: (DEBUG) config @ boot arguments disabled 0, debug 1
7/8/16 10:53:09.000 kernel[0]: AppleALC: (DEBUG) init @ initialising with Policy mode
7/8/16 10:53:09.000 kernel[0]: calling mpo_policy_init for AppleALC
7/8/16 10:53:09.000 kernel[0]: Security policy loaded: AppleALC Kernel Extension (AppleALC)
7/8/16 10:53:09.000 kernel[0]: AppleALC: (DEBUG) policy @ init bsd
7/8/16 10:53:09.000 kernel[0]: AppleALC: (DEBUG) config @ policy hit
7/8/16 10:53:09.000 kernel[0]: AppleALC: (DEBUG) config @ initialising enabler
7/8/16 10:53:09.000 kernel[0]: AppleALC: (DEBUG) mach @ MachInfo asKernel 1 object constructed
7/8/16 10:53:09.000 kernel[0]: AppleALC: (DEBUG) mach @ Address of interrupt 80 stub is 0x<ptr>
7/8/16 10:53:09.000 kernel[0]: AppleALC: (DEBUG) mach @ Found kernel mach-o header address at <ptr>
Kexts in S/L/E
ALF.kext
AMD2400Controller.kext
AMD2600Controller.kext
AMD3800Controller.kext
AMD4600Controller.kext
AMD4800Controller.kext
AMD5000Controller.kext
AMD6000Controller.kext