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
@IBInspectable var comment: String { | |
set {} | |
get { return "" } | |
} |
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 CoreData | |
import PlaygroundSupport | |
// Build a simple model in code for demo purposes. | |
// The model has a single entity called "Entity" with a single optional string attribute called "testAttribute". | |
// There are no relationships in the model. | |
let model = NSManagedObjectModel() | |
let entity = NSEntityDescription() | |
entity.name = "Entity" | |
let testAttribute = NSAttributeDescription() |
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
struct x { | |
int y; | |
}; | |
@interface Game : NSObject { | |
char fields[9]; | |
BOOL singlePlayer; | |
BOOL isPlayerOne; | |
BOOL wasPlayerOne; | |
long int played; |
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 a/archives/wwdccheck.html b/archives/wwdccheck.html | |
index 713b830..93d4f4f 100644 | |
--- a/archives/wwdccheck.html | |
+++ b/archives/wwdccheck.html | |
@@ -6,7 +6,7 @@ | |
<meta name="viewport" content="width=1024" /> | |
<link rel="shortcut icon" href="/favicon.ico" /> | |
<link rel="icon" href="/favicon.ico" /> | |
-<link rel="stylesheet" href="https://devimages.apple.com.edgekey.net/assets/core/styles/base.css" type="text/css" /> | |
+<link rel="stylesheet" href="/assets/core/styles/base.css" type="text/css" /> |
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 a/archives/wwdccheck.html b/archives/wwdccheck.html | |
index f92ed3a..713b830 100644 | |
--- a/archives/wwdccheck.html | |
+++ b/archives/wwdccheck.html | |
@@ -60,7 +60,7 @@ | |
var s_account="appleglobal,appleusdeveloper" | |
</script> | |
-<!-- <script type="text/javascript" src="https://ssl.apple.com/metrics/scripts/s_code_h.js"></script> --> | |
+<script type="text/javascript" src="https://www.apple.com/metrics/scripts/s_code_h.js"></script> |
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 a/archives/wwdccheck.html b/archives/wwdccheck.html | |
index be95ffd..f92ed3a 100644 | |
--- a/archives/wwdccheck.html | |
+++ b/archives/wwdccheck.html | |
@@ -60,7 +60,7 @@ | |
var s_account="appleglobal,appleusdeveloper" | |
</script> | |
-<script type="text/javascript" src="https://ssl.apple.com/metrics/scripts/s_code_h.js"></script> | |
+<!-- <script type="text/javascript" src="https://ssl.apple.com/metrics/scripts/s_code_h.js"></script> --> |
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
<?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>KeepAlive</key> | |
<dict> | |
<key>Crashed</key> | |
<true/> | |
<key>SuccessfulExit</key> | |
<false/> |
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
# Fix an iOS-converted PNG | |
fixpng () { | |
if [ -z "$1" ]; then | |
echo "Usage: fixpng <inputFile> [outputFile]" | |
return -1 | |
else | |
inputFile=$1 | |
# Only "png" and "PNG" are allowed | |
pngRegex='.*.(png|PNG)$' |
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> | |
// Get an NSDate representing 30 minutes past midnight in an arbitrary time zone, and print it in a readable form. | |
// Tom Harrington, tph@atomicbird.com | |
int main(int argc, char *argv[]) { | |
NSAutoreleasePool *p = [[NSAutoreleasePool alloc] init]; | |
NSString *timeZoneName = @"America/New_York"; | |
NSTimeZone *timeZone = [NSTimeZone timeZoneWithName:timeZoneName]; |
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
NSManagedObjectContext *theCreatingMOC = theChildMOC; | |
[theCreatingMOC performBlockAndWait:^{ | |
// Insert some test data... | |
NSManagedObject *thePerson = [NSEntityDescription insertNewObjectForEntityForName:@"Person" inManagedObjectContext:theCreatingMOC]; | |
[thePerson setValue:@"Steve Jobs" forKey:@"name"]; | |
NSManagedObject *theCompany = [NSEntityDescription insertNewObjectForEntityForName:@"Company" inManagedObjectContext:theCreatingMOC]; | |
[theCompany setValue:@"Apple" forKey:@"name"]; |