Skip to content

Instantly share code, notes, and snippets.

View JamesEarle's full-sized avatar

James Earle JamesEarle

View GitHub Profile
@JamesEarle
JamesEarle / Iterative
Last active March 11, 2019 01:48
Iterative vs. Recursive Tower of Hanoi
import java.util.Stack;
/* An iterative approach to the Tower of Hanoi puzzle. Uses
* 3 stacks as a representation to replace the recursive method
* and approaches all possible legal moves between every peg
* combination at any point in the puzzle.
*
* @author James Earle
*/
@JamesEarle
JamesEarle / TBS_Home.html
Last active December 28, 2015 20:39
Documentation + CSS for store website (example for class COSC 2P89)
<!--
TBS_Home.html
COSC 2P89, Fall Semester
James Earle, 5017843
Tuesday, October 22, 2013
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> The Branch Store Home </title>
@JamesEarle
JamesEarle / Comments.php
Last active August 29, 2015 13:56
The Drummers Throne - A musicians blog / forum. COSC 2P89 Final Project - Fall 2013 (Only main files included)
#!/usr/local/bin/php
<?php
// $con = DB CONNECTION HERE. Removed for security purposes.
if (array_key_exists('isThread',$_POST)) {
//We're coming from "Threads.php" get top value
if (array_key_exists('topPerc',$_POST)) {
$selectedPost = 'topPerc';
}
/*
* Date: March 21st, 2014
* Author: James Earle, 5017843
* Email: je11zi@brocku.ca
*
* COSC 2P91 - Procedural Programming
* Assign. 2, Section 2: Modelling Electronic Circuits
*
* The program below will read from file and simulate
* the effects of a Wheatstone Bridge, outputting the