Want to create a Gist from your editor, the command line, or the Services menu? Here's how.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
@interface NSNotificationCenter (ObserverAdditions) | |
- (void)registerObserver:(id)observer | |
forName:(NSString *)name | |
object:(id)obj | |
queue:(NSOperationQueue *)queue | |
usingBlock:(void (^)(NSNotification *))block; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ACTION = build | |
AD_HOC_CODE_SIGNING_ALLOWED = NO | |
ALTERNATE_GROUP = staff | |
ALTERNATE_MODE = u+w,go-w,a+rX | |
ALTERNATE_OWNER = grantdavis | |
ALWAYS_SEARCH_USER_PATHS = NO | |
ALWAYS_USE_SEPARATE_HEADERMAPS = YES | |
APPLE_INTERNAL_DEVELOPER_DIR = /AppleInternal/Developer | |
APPLE_INTERNAL_DIR = /AppleInternal | |
APPLE_INTERNAL_DOCUMENTATION_DIR = /AppleInternal/Documentation |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Vim syntax file | |
" Language: PHP 4/5 | |
" Maintainer: Peter Hodge <toomuchphp-vim@yahoo.com> | |
" Last Change: May 7, 2008 | |
" | |
" URL: http://www.vim.org/scripts/script.php?script_id=1571 | |
" Version: 0.9.7 | |
" | |
" ================================================================ | |
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# clash (for make/vhdl/Image/Image.manifest) | |
# clash (for make/vhdl/Image/Image.manifest) | |
Loading dependencies took 2.047838812s | |
Applied 287 transformations | |
Normalisation took 0.364243634s | |
Netlist generation took 0.012578591s | |
Testbench generation took 0.000280213s | |
Total compilation took 2.428932468s | |
# vivado (for make/logo.synth.dcp) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Resets all the default PowerShell 5 aliases. | |
.NOTES | |
This script must be run by dot-sourcing if you want it to clear the defaul aliases. | |
It can take quite a while when it's validating all of the commands (a minute and a half, on my system), so it is by far fastest to run it in -Force | |
.EXAMPLE | |
Reset-Alias.ps1 -Force -Quiet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit a44375a9a7f3ba29eee194b1665ea5cb04724537 | |
Author: Tor Arne Vestbø <tor.arne.vestbo@qt.io> | |
Date: Wed Jan 3 15:41:02 2018 +0100 | |
logging: Break out alternative logging sinks into a well defined API | |
First steps towards a public API for having multiple output sinks is | |
to allow this internally. | |
We give all the different log sinks the same signature, with a bool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git i/src/corelib/kernel/qcoreapplication.cpp w/src/corelib/kernel/qcoreapplication.cpp | |
index 553eaf0..247d2ad 100644 | |
--- i/src/corelib/kernel/qcoreapplication.cpp | |
+++ w/src/corelib/kernel/qcoreapplication.cpp | |
@@ -144,8 +144,13 @@ QString QCoreApplicationPrivate::macMenuBarName() | |
return bundleName; | |
} | |
#endif | |
+ | |
+static QBasicMutex appNameMutex; |
OlderNewer