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 "ActionViewController.h" | |
@implementation ActionViewController | |
@synthesize startButton; | |
@synthesize stopOrContinueButton; | |
- (IBAction) startButtonPressed { | |
NSLog(@"start button pressed"); |
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 org.scalatest.FlatSpec | |
import org.scalatest.matchers.ShouldMatchers | |
class StackSpec extends FlatSpec with ShouldMatchers { | |
"A Stack" should "pop values in last-in-first-out order" in { | |
val stack = new Stack[Int] | |
stack.push(1) | |
stack.push(2) | |
stack.pop() should equal (2) |
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 <UIKit/UIKit.h> | |
int main(int argc, char *argv[]) { | |
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; | |
int retVal = UIApplicationMain(argc, argv, nil, nil); | |
[pool release]; | |
return retVal; | |
} |
NewerOlder