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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta name="color:Links" content="#ba1820" /> | |
<meta name="image:Background" content="" /> | |
<meta name="if:Show People I Follow" content=""/> | |
<meta name="if:Show Tags" content="1" /> | |
<meta name="if:Show Description" content="" /> | |
<meta name="text:Disqus Shortname" content="" /> | |
<meta name="text:Slogan" content="This is where your Slogan / Short Subtitle goes. Edit this at Customization Section" /> |
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
// | |
// Angry_StockholdersViewController.h | |
// Angry Stockholders | |
// | |
// Created by Cassidy Pangell on 7/21/11. | |
// | |
#import <UIKit/UIKit.h> | |
@interface Angry_StockholdersViewController : UIViewController { |
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
//Cass Pangell | |
//9.23.2008 | |
//sudoku2cnf rewrite | |
#include <iostream> | |
#include <cstdlib> | |
#include <fstream> | |
#include <string> | |
using namespace std; |
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
// | |
// 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 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
// | |
// 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 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
// | |
// 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 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 "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 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
- (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 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
// 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 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> | |
@interface GOCustomView : UIView { | |
NSMutableArray *xArr; | |
} | |
@property(nonatomic, retain) UIColor *bgColor; | |
@property (nonatomic,retain) NSMutableArray *xArr; |