Skip to content

Instantly share code, notes, and snippets.

View peterdcasey's full-sized avatar

Peter Casey peterdcasey

View GitHub Profile
@peterdcasey
peterdcasey / index.html
Created September 28, 2020 17:03
Portfolio Starter Template
<!doctype html>
<!-- Thank you to Yong Bakos - Oregon State Cascades -->
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
"""
Sample Python Code
"""
def sample_one():
'''
Input two numbers
Print the result of the product
'''
x = int(input("Number? "))
import java.util.*;
/**
* Simple on-the-fly example of Comparable and
* Comparator.
*
* @author Peter Casey
* @version 0.1
*/
public class CC implements Comparable<CC>
{
/**
* TesterBool
* <br>
* <p>Build a logical expression using True(#) and False(#)
* method calls. Number the T/F calls sequentially, left to right.
* </p>
* <p>The output displays the numbers of the called methods, if
* evaluated, and the final result.
* </p>
* <p>Example: False(1) && (True(2) || False(3)) || True(4)
@peterdcasey
peterdcasey / BinaryTree_Lists
Created November 13, 2019 08:16
BinaryTree implementation using Python lists
"""
BinaryTree code using Python Lists
[5, [4, [], []], []]
[3, [9, [4, [], []], []], [7, [], [6, [], []]]]
[3, [9, [11, [4, [], []], []], []], [7, [], [6, [], []]]]
[6, [], []]
"""
def BinaryTree(r):
@peterdcasey
peterdcasey / index.html
Created October 9, 2019 04:35
Just testing
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<style>
h1 {color: red}
</style>
</head>
<!doctype html>
<!-- Thank you to Yong Bakos - Oregon State Cascades -->
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">