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
<?php | |
require_once('libraries/happpi/LoadAll.php'); // points to the LoadAll.php file for loading the library. | |
?> | |
<!doctype html> | |
<html> | |
<head> | |
</head> | |
<body> |
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
type APICategory struct { | |
Parent Category | |
Conent []Content | |
Sub_categories []Category | |
} | |
type Category struct { | |
CatID int | |
DateAdded string | |
ParentID int |
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 java.sql.{Connection, DriverManager, ResultSet} | |
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver") | |
val conn = DriverManager.getConnection("jdbc:sqlserver://216.17.90.83;databaseName=CurtDev;user=*******;password=XXXXXX;useUnicode=true;characterEncoding=UTF-8") | |
try { | |
val statement = conn.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY) | |
val rs = statement.executeQuery("select * from Part") | |
while(rs.next()) { | |
println(rs.getInt("partID")) |
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 MyOverlayView : UIView { | |
} | |
- (void)awakeFromNib; | |
- (void)dealloc; | |
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event; |
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 ProductScrollView : ContentController <UIScrollViewDelegate> { | |
IBOutlet UIScrollView *scrollView; | |
Vehicle *sharedVehicle; | |
VehiclePicker *sharedPicker; | |
NSMutableArray *productArray; | |
NSMutableArray *viewControllers; | |
BOOL arrayPopulated; | |
} | |
@property (nonatomic, retain) UIScrollView *scrollView; |
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
ProductView *prodView = (ProductView *)self.view; //Reference to view | |
//create close button | |
UIBarButtonItem *closeButton = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:self action:@selector(closePopup)] autorelease]; | |
//image from the product | |
UIImageView *imageView = [[UIImageView alloc] initWithImage:[[prodView prodImage] backgroundImageForState:UIControlStateNormal]]; | |
imageView.contentMode = UIViewContentModeScaleAspectFit; | |
imageView.contentScaleFactor = .8; | |
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
ProductView *prodView = (ProductView *)self.view; //Reference to view | |
//create close button | |
UIBarButtonItem *closeButton = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:self action:@selector(closePopup)] autorelease]; | |
//image from the product | |
UIImageView *imageView = [[UIImageView alloc] initWithImage:[[prodView prodImage] backgroundImageForState:UIControlStateNormal]]; | |
imageView.contentMode = UIViewContentModeScaleAspectFit; | |
imageView.contentScaleFactor = .8; | |
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
if (pageControl == nil) { | |
pageControl = [[UIPageControl alloc] init]; | |
pageControl.frame = CGRectMake(0, 0, scrollView.superview.frame.size.width, 15); | |
pageControl.bounds = CGRectMake(30, (scrollView.superview.frame.size.height -20), scrollView.superview.frame.size.width, 15); | |
//pageControl.center = CGPointMake((scrollView.frame.size.width +5), [[UIScreen mainScreen] applicationFrame].origin.y); | |
NSLog(@"frame = %@", pageControl.frame); | |
NSLog(@"bounds = %@", pageControl.bounds); | |
} |