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
public class Measurement { | |
public let value: Double | |
public required init(_ value:Double) { | |
self.value = value | |
} | |
} | |
public struct Size { | |
public let width:Measurement |
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> | |
#import <objc/runtime.h> | |
@interface ExtraData : NSObject | |
@end | |
@implementation ExtraData | |
- (void)dealloc; | |
{ | |
fprintf(stderr, "ExtraData %p deallocated\n", self); | |
[super dealloc]; |
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> | |
#import <objc/runtime.h> | |
#import <objc/objc-auto.h> | |
/* | |
cc -Wall -fobjc-gc objc-assoc.m -o objc-assoc -framework Foundation | |
*/ | |
@interface ExtraData : NSObject | |
@end |
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 <stdio.h> | |
#import <dispatch/dispatch.h> | |
#import <libkern/OSAtomic.h> | |
#import <unistd.h> | |
/* | |
gcc-4.2 -arch x86_64 -std=gnu99 -O0 -mdynamic-no-pic -Wall -Werror -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -gdwarf-2 max-concurrent.c -o max-concurrent | |
*/ | |
int main(int argc, char *argv[]) |
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
[OUIAnimationSequence runWithDuration:0.3 | |
actions: | |
^{ | |
// step 1 | |
}, | |
^{ | |
// step 2 | |
}, | |
… | |
^{ |
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
#!/bin/zsh -f | |
set -e | |
PKG_DIR=/tmp/SystemHeaders-`uname -r` | |
echo "Packaging $PKG_DIR..." | |
mkdir -p $PKG_DIR | |
cd / | |
for d in System/Library/Frameworks usr/include Developer/Library/Frameworks usr/lib; do |
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
static id _commonInit(MyView *self) | |
{ | |
// common init stuff like so... | |
self.opaque = YES; | |
self->_scale = 1.0; | |
return self; | |
} | |
- initWithFrame:(CGRect)frame; |
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
--------------- cats #42 (34 lines) --------------- | |
Date: Fri Apr 22 12:33:02 1994 | |
From: I'm jealous of Le Qow. <camel> | |
Subject: cat humor | |
recent cat humor postings on the uwbb reminded me of Yak. | |
Just for some reminiscing, here's a yak post that I've saved for quite | |
some time now. |
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
Marker - Apr 27, 2012 10:41:55 PM | |
Apr 27 22:41:58 vaya [0x0-0x61f61f].com.wb.Bastion[17401]: Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object | |
Apr 27 22:41:58 vaya [0x0-0x61f61f].com.wb.Bastion[17401]: at GSGE.AppDelegate.DidBecomeActive (MonoMac.Foundation.NSNotification) <0x00010> | |
Apr 27 22:41:58 vaya [0x0-0x61f61f].com.wb.Bastion[17401]: at (wrapper dynamic-method) object.[GSGE.AppDelegate.Void DidBecomeActive(MonoMac.Foundation.NSNotification)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.Foundation.NSNotification) <0x00033> | |
Apr 27 22:41:58 vaya [0x0-0x61f61f].com.wb.Bastion[17401]: at (wrapper native-to-managed) object.[GSGE.AppDelegate.Void DidBecomeActive(MonoMac.Foundation.NSNotification)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.Foundation.NSNotification) <0x000fb> | |
Apr 27 22:41:58 vaya [0x0-0x61f61f].com.wb.Bastion[17401]: at (wrapper managed-to-native) MonoMac.AppKit.NSApplication.NSApplicationMain |
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
XcodeMindWipe () { | |
rm -rf ~/Library/Developer/Xcode/DerivedData | |
find . -name $USER.xcuserdatad -o \( -name xcuserdata -o -name "*.xccheckout" \) -print0 | xargs -0 rm -rf | |
} |