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> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>[YOUR NAME HERE]'s Spring2012 CS105 Home Page</title> | |
<style type="text/css"> | |
.notStarted { | |
visibility: hidden; | |
} | |
.inProgress:before { |
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
digraph sd2 | |
{ | |
s1->d1 [label="100"]; | |
s1->d2 [label="100"]; | |
s1->d3 [label="100"]; | |
s1->d4 [label="100"]; | |
s2->d2 [label="100"]; | |
s2->d4 [label="100"]; | |
s3->d3 [label="100"]; | |
s3->d4 [label="100"]; |
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
//Tiny function to compute the GCD | |
int gcd(int a, int b) { return ( b == 0 ? a : gcd(b, a % b) ); } | |
//More readable to return the greatest common divisor of two integers | |
int gcd(int first, int second) | |
{ | |
if(first<0) first = -first; | |
if(second<0) second = -second; | |
if (first > second) |
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
// | |
// BAdamsKnife.h | |
// knife_object_intro | |
// | |
// Created by Bryant Adams on 1/24/12. | |
// Copyright (c) 2012 __MyCompanyName__. All rights reserved. | |
// | |
#import <Foundation/Foundation.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
/** | |
* \file Fraction.h | |
* \author Prof. Adams | |
* \brief Contains header information and documentation for Fraction object | |
* \version 1.0 - 120205 | |
* \version 1.1 - 120209 - Changed at-dox to slash-dox | |
*/ | |
#import <Foundation/Foundation.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
// TODO: Implement method | |
#warning Method still a stub | |
-(double) congratulate:(NSString*)whom manyTimes:(int)n | |
{ | |
NSLog(@"\n\tStatus=<%@> Class=<%@> Selector=<%@>", @"Stub", NSStringFromClass([self class]), NSStringFromSelector(_cmd)); | |
return NAN; | |
} | |
// TODO: Implement method | |
#warning Method still a stub |
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
# Doxyfile 1.7.4 | |
# This file describes the settings to be used by the documentation system | |
# doxygen (www.doxygen.org) for a project | |
# | |
# All text after a hash (#) is considered a comment and will be ignored | |
# The format is: | |
# TAG = value [value, ...] | |
# For lists items can also be appended using: | |
# TAG += value [value, ...] |
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
/********************************/ | |
/* WARNING! These are snippets */ | |
/* and NOT the entire code! */ | |
/* You'll need to implement the */ | |
/* designated initializer and */ | |
/* most of the arithmetic. */ | |
/********************************/ | |
-(id) initWithReal:(int)reNum | |
over:(int)reDen |
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
//This documentation should be put with the appropriate class/method/function declarations. | |
//Remember to add file documentation blocks to all your files! | |
/** | |
Entry point for the program. Tests that list operations are working. | |
*/ | |
/** | |
Represents a node in a singly linked list | |
*/ |
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
<?php | |
ini_set('display_errors', 1); | |
$db_handle = pg_connect("dbname=CS325_astudent user=astudent password=apassword"); | |
$query = "SELECT * FROM schemaname.tablename"; | |
$result = pg_exec($db_handle, $query); | |
echo "Number of rows: " . pg_numrows($result); | |
pg_freeresult($result); | |
pg_close($db_handle); | |
?> |