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
// | |
// Wasted_SpaceViewController.h | |
// Wasted Space | |
// | |
// Created by Cassidy Pangell on 7/12/11. | |
// Copyright 2011 Circadence. 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
-(void)showSplash { | |
UIViewController *modalViewController = [[UIViewController alloc] init]; | |
modalViewController.view = modelView; | |
[self presentModalViewController:modalViewController animated:NO]; | |
[self performSelector:@selector(hideSplash) withObject:nil afterDelay:1.0]; | |
} | |
-(void)hideSplash{ | |
[[self modalViewController] dismissModalViewControllerAnimated:YES]; | |
} |
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 <UIKit/UIKit.h> | |
@interface GOCustomView : UIView { | |
NSMutableArray *xArr; | |
} | |
@property(nonatomic, retain) UIColor *bgColor; | |
@property (nonatomic,retain) NSMutableArray *xArr; |
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
// Draw a point (filled circle) | |
CGContextFillEllipseInRect(context, CGRectMake(xVal, yVal, 5, 5)); | |
CGFloat red[4] = {1.0f, 0.0f, 0.0f, 1.0f}; | |
CGContextSetFillColor(context, red); | |
//----- AXIS | |
CGFloat white[4] = {1.0f, 1.0f, 1.0f, 1.0f}; | |
CGContextSetStrokeColor(context, white); | |
CGContextBeginPath(context); | |
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)drawRect:(CGRect)rect | |
{ | |
CGContextRef context = UIGraphicsGetCurrentContext(); | |
[self.bgColor setFill]; | |
NSUInteger count = [self.points count]; | |
CGFloat prevValX; | |
CGFloat prevValY; | |
CGFloat deltaX = LENGTH / (count - 1); |
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 "CPCustomView.h" | |
#include "math.h" | |
#define LENGTH 250 | |
#define HEIGHT 250 | |
@implementation CPCustomView | |
@synthesize bgColor = _bgColor; | |
@synthesize MVO_D_Points = _MVO_D_Points; | |
@synthesize TCP_U_Points = _TCP_U_Points; | |
@synthesize TCP_D_Points = _TCP_D_Points; |
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
// | |
// GOCustomView.m | |
// CustomViewExample | |
// | |
// Created by Cassidy Pangell on 8/26/11. | |
// Copyright (c) 2011 __MyCompanyName__. All rights reserved. | |
// | |
#import "CPCustomView.h" | |
#include "math.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
// | |
// GOCustomView.m | |
// CustomViewExample | |
// | |
// Created by Cassidy Pangell on 8/26/11. | |
// Copyright (c) 2011 __MyCompanyName__. All rights reserved. | |
// | |
#import "CPCustomView.h" | |
#include "math.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
// | |
// GOCustomView.m | |
// CustomViewExample | |
// | |
// Created by Cassidy Pangell on 8/26/11. | |
// Copyright (c) 2011 __MyCompanyName__. All rights reserved. | |
// | |
#import "CPCustomView.h" | |
#include "math.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
//Cass Pangell | |
//9.23.2008 | |
//sudoku2cnf rewrite | |
#include <iostream> | |
#include <cstdlib> | |
#include <fstream> | |
#include <string> | |
using namespace std; |
OlderNewer