This file contains hidden or 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
{ | |
"keymap": [ | |
{ | |
"keyCode": 52, | |
"label": "'" | |
}, | |
{ | |
"keyCode": 54, | |
"label": "," | |
}, |
This file contains hidden or 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 | |
import PlaygroundSupport | |
import SwiftUI | |
struct Content: View { | |
var body: some View { | |
Text("👋🏻, 🌍!") | |
} | |
} |
This file contains hidden or 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
- (NSURL)URLFromString:(NSString *)string; | |
{ | |
static NSPasteboard *pboard; | |
if (!pboard) pboard = [[NSPasteboard pasteboardWithUniqueName] retain]; | |
[pboard clearContents]; | |
[pboard writeObjects:@[string]]; | |
NSURL *result = [WebView URLFromPasteboard:pboard]; | |
return result; |
This file contains hidden or 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 <Availability.h> | |
#if __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_4_3 | |
#warning "This library uses ARC which is only available in iOS SDK 4.3 and later." | |
#endif | |
#if !defined dct_weak && __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_5_0 | |
#define dct_weak weak | |
#define __dct_weak __weak | |
#define dct_nil(x) |
This file contains hidden or 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
#!/usr/bin/python | |
import sys | |
import os | |
from collections import defaultdict | |
import hashlib | |
theRoot = '/Volumes/Stuff/Files/' | |
theTrashFolder = '/Volumes/Stuff/Trash/' |
This file contains hidden or 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
// | |
// NSObject+BlockObservation.h | |
// Version 1.0 | |
// | |
// Andy Matuschak | |
// [email protected] | |
// Public domain because I love you. Let me know how you use it. | |
// | |
#import <Cocoa/Cocoa.h> |
This file contains hidden or 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
// | |
// NSArray+DSLFirstItems.h | |
// | |
// Created by Pete Callaway on 15/10/2010. | |
// Copyright 2010 Dative Studios. All rights reserved. | |
// Modified by Abizer Nasir | |
// | |
#import <Foundation/Foundation.h> |
This file contains hidden or 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
// | |
// NSObject+BlockObservation.h | |
// Version 1.0 | |
// | |
// Andy Matuschak | |
// [email protected] | |
// Public domain because I love you. Let me know how you use it. | |
// | |
#import <Cocoa/Cocoa.h> |
This file contains hidden or 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
HEAD=`/usr/local/bin/git rev-parse --short HEAD` | |
defaults write "$BUILT_PRODUCTS_DIR/$INFOPLIST_PATH" CFBundleVersion "$HEAD" |
This file contains hidden or 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 <Cocoa/Cocoa.h> | |
@interface NSMutableDictionary (PXDictionaryAdditions) | |
- (BOOL)setObjectOrNull:(id)anObject forKey:(id <NSCopying>)aKey; | |
@end |
NewerOlder