Skip to content

Instantly share code, notes, and snippets.

View aquarius's full-sized avatar

Markus Müller-Simhofer aquarius

View GitHub Profile
@aquarius
aquarius / gist:9132550
Created February 21, 2014 11:09
Clear Preferences plist on Mavericks
defaults delete com.mindnode.MindNodePro
@interface NSScrollView (Yosemite)
@property () NSEdgeInsets contentInsets;
@property () BOOL automaticallyAdjustsContentInsets;
@end
@aquarius
aquarius / gist:e96cc37e9cdae9ca5f1e
Created December 12, 2014 16:21
Markdown Export
# First Main Node
## Subnode Level 1
# Second Main Node
## Subnode Level 1
## Subnode Level 1
@aquarius
aquarius / gist:ff2328a0dad34cbcfc6a
Created April 17, 2015 10:15
Workaround to fix a iCloud bug related to adding .folder extension to packages
1. In Finder access the Preferences.
2. On the "Advanced" tab enabled "Show all filename extensions"
3. Go back to the iCloud Drive folder. You will notice that all documents have a .mindnode.folder extension.
4. Remove the .folder extension to fix the document.
@aquarius
aquarius / UIViewController+Convenience.m
Created August 22, 2011 11:02
Hide and present new modal view animated
@implementation UIViewController (Convenience)
- (void)mn_hideCurrentModalControllerAndPresentController:(UIViewController *)controller
{
if (self.modalViewController) {
[self dismissModalViewControllerAnimated:YES];
dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, 0.5 * NSEC_PER_SEC);
dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
[self presentModalViewController:controller animated:YES];
});
@aquarius
aquarius / gist:1295218
Created October 18, 2011 11:32
Workaround to get a continuous build number in git
v=`git log --pretty=format:'' | wc -l`
defaults write "${TARGET_BUILD_DIR}"/"${CONTENTS_FOLDER_PATH}"/Info CFBundleVersion $v
@aquarius
aquarius / gist:1297890
Created October 19, 2011 10:08
Prevent Quincy from reporting older crash logs on first launch
if (![[NSUserDefaults standardUserDefaults] valueForKey: @"CrashReportSender.lastCrashDate"]) {
[[NSUserDefaults standardUserDefaults] setValue: [NSDate date]
forKey: @"CrashReportSender.lastCrashDate"];
}
@aquarius
aquarius / gist:1313112
Created October 25, 2011 15:22
MindNode touch Crash Report
Exception Type: SIGSEGV
Exception Codes: SEGV_ACCERR at 0x60000008
Crashed Thread: 0
Thread 0 Crashed:
0 libobjc.A.dylib 0x00003fbc objc_msgSend + 16
1 UIKit 0x0001e0bf -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 215
2 UIKit 0x0001881b -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 471
3 UIKit 0x0001dfb9 -[UIViewAnimationState animationDidStop:finished:] + 53
4 QuartzCore 0x0002bba7 CA::Layer::run_animation_callbacks(void*) + 203
@aquarius
aquarius / gist:1313895
Created October 25, 2011 19:14
MindNode touch 2.0.1 Change Log
- Fixes a launch issue related to loading cross connections.
- Fixes a launch issue related to error handling when failing to load a document.
- Fixes a crash when trying to export a document with only one main node to FreeMind.
- Fixes a crash when downloading or uploading a file to dropbox fails.
- Correctly draw rounded caps during image and PDF export.
- Draw cross connection during PDF export.
- Fixes an issue were lines where not fully drawn during PDF export.
- Correctly size image in the export format dialog.
@aquarius
aquarius / gist:1322028
Created October 28, 2011 10:17
Export all image file types with a transparent background in MindNode Pro
defaults write com.mindnode.MindNodePro MNDefaultsIgnoreBackgroundWhenDrawingOffScreen YES