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
// MyObject.h | |
@interface MyObject : NSObject | |
+ (instancetype)sharedInstance; | |
@end | |
// MyObject.m | |
@implementation MyObject |
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
LOGGING = { | |
'version': 1, | |
'disable_existing_loggers': False, | |
'filters': { | |
'require_debug_false': { | |
'()': 'django.utils.log.RequireDebugFalse' | |
}, | |
'require_debug_true': { | |
'()': 'django.utils.log.RequireDebugTrue' | |
} |
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
Process: Quicksilver [382] | |
Path: /Applications/Quicksilver.app/Contents/MacOS/Quicksilver | |
Identifier: com.blacktree.Quicksilver | |
Version: 1.2.0 (400D) | |
Code Type: X86-64 (Native) | |
Parent Process: ??? [1] | |
Responsible: Quicksilver [382] | |
User ID: 501 | |
Date/Time: 2014-08-09 03:06:08.605 +0100 |
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
Process: Quicksilver [8639] | |
Path: /Applications/Quicksilver.app/Contents/MacOS/Quicksilver | |
Identifier: com.blacktree.Quicksilver | |
Version: 1.2.0 (400D) | |
Code Type: X86-64 (Native) | |
Parent Process: ??? [1] | |
Responsible: Quicksilver [8639] | |
User ID: 501 | |
Date/Time: 2014-08-13 23:59:49.067 -0700 |
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
Avon | |
Bedfordshire | |
Berkshire | |
Bristol | |
Buckinghamshire | |
Cambridgeshire | |
Cheshire | |
Cleveland | |
Cornwall | |
Cumbria |
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
property querylist : {"CharacterPalette"} | |
property app_is_up : missing value | |
set app_is_up to false | |
set frontapp to getFrontApplication() | |
repeat with i in querylist | |
set the_ps to paragraphs of (do shell script "/bin/ps -acx") | |
tid("/") | |
repeat with _line in the_ps | |
if _line is "" then | |
else |
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
+// Contents of sourceFiles are SBObjects (i.e. it's technically an SBElementArray) | |
+ NSMutableArray *sourceFiles = [[NSMutableArray alloc] initWithCapacity:[files count]]; | |
+ for (NSString *path in files) { | |
+ [sourceFiles addObject:[[finder items] objectAtLocation:path]]; | |
+ } | |
+ FinderItem *destinationItem = [[finder items] objectAtLocation:destination]; | |
+ | |
+ if (copy) { | |
+ [(SBObject *)sourceFiles duplicateTo:destinationItem replacing:NO routingSuppressed:NO exactCopy:YES]; | |
+ } else { |
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
a = ['a','b','c','d'] | |
b = ['1','2','3','b'] | |
for aLet in a: | |
for bLet in b: | |
if aLet is bLet: | |
print 'they are the same!' |
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
- (void)setObjectValue:(id)value { | |
if ([value isKindOfClass:[QSObject class]]) { | |
[self setRepresentedObject:value]; | |
} | |
} |
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
1Password Plugin ** | |
Abracadabra Triggers | |
AcidSearch Queries | |
Address Book Plugin ** | |
AirPort Module | |
Apple Mail Plugin ** | |
Automator Plugin ** | |
BBEdit Module | |
Backpack Module | |
Bluetooth Module |
OlderNewer