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
-(PragBook *) book{ | |
if (!book) { | |
self.book = [[PragBook alloc] init]; | |
//self.book.title = @"Manage Your Project Portfolio"; | |
//self.book.author = @"Johanna Rothman"; | |
NSDictionary *bookInfo = [NSDictionary dictionaryWithObjectsAndKeys: | |
@"Manage Your Project Portfolio", @"title", | |
@"Johana Rothman", @"author", nil]; | |
[self.book setValuesForKeysWithDictionary:bookInfo]; | |
} |
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
@interface PragBook : NSObject { | |
NSString *title; | |
NSString *author; | |
NSMutableArray *chapters; | |
} | |
@interface Chapter : NSObject { | |
NSString *chapterTitle; | |
NSNumber *pageCount; | |
} |
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)willPresentAlertView:(UIAlertView *)alertView | |
{ | |
return; //[[[self view] window] isKeyWindow] YES | |
} | |
- (void)didPresentAlertView:(UIAlertView *)alertView | |
{ | |
return; //[[[self view] window] isKeyWindow] NO | |
} |
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
G | |
reg | |
Cer | |
ven | |
yOb | |
jec | |
tiv | |
eDelive renga | |
gin gexperi enc | |
eso niOSand OSX |
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
asbd.mFormatID = kAudioFormatLinearPCM; | |
asbd.mFormatFlags = kAudioFormatFlagIsBigEndian | kAudioFormatFlagIsSignedInteger | kAudioFormatFlagIsPacked; | |
NSLog (@"wrote %ld samples", sampleCount); |
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
{ "Greg" } |
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
$ curl -X POST http://jsonbin.herokuapp.com/ | |
access at http://jsonbin.herokuapp.com/abf052c9 | |
$ curl -X PUT -d "oops=there goes my skirt" http://jsonbin.herokuapp.com/abf052c9 | |
{"oops":"there goes my skirt"} | |
$ curl http://jsonbin.herokuapp.com/abf052c9 |
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
// | |
// AMViewController.h | |
// testAnimation | |
// | |
// Created by Greg Cerveny on 1/30/12. | |
// Copyright (c) 2012 Artful Medium, LLC. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> |
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
## Thursday | |
12-6p | |
Music Gear Expo | |
Exhibit Hall 5 | |
http://sxsw.com/music/expos/gear | |
1p-3:45p | |
Dubspot @ SXSW | |
Exhibit Hall 5 |
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
- (UIImage *)getNextImage { | |
if (!self.demonstrationImages || [self.demonstrationImages count] == 0) | |
return nil; | |
UIImage *nextImage = [self.demonstrationImageEnumerator nextObject]; | |
if (nextImage) | |
return nextImage; | |
self.demonstrationImageEnumerator = [self.demonstrationImages objectEnumerator]; | |
return [self getNextImage]; |
OlderNewer