Skip to content

Instantly share code, notes, and snippets.

Avatar

Peter Casey peterdcasey

View GitHub Profile
@peterdcasey
peterdcasey / index.html
Created Sep 28, 2020
Portfolio Starter Template
View index.html
<!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="">
View sample_python_code.py
"""
Sample Python Code
"""
def sample_one():
'''
Input two numbers
Print the result of the product
'''
x = int(input("Number? "))
View CC.java
import java.util.*;
/**
* Simple on-the-fly example of Comparable and
* Comparator.
*
* @author Peter Casey
* @version 0.1
*/
public class CC implements Comparable<CC>
{
View Logical expression practice (Java)
/**
* 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 Nov 13, 2019
BinaryTree implementation using Python lists
View BinaryTree_Lists
"""
BinaryTree code using Python Lists
[5, [4, [], []], []]
[3, [9, [4, [], []], []], [7, [], [6, [], []]]]
[3, [9, [11, [4, [], []], []], []], [7, [], [6, [], []]]]
[6, [], []]
"""
def BinaryTree(r):
View index.html
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<style>
h1 {color: red}
</style>
</head>
View jumbotron.html
<!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="">
You can’t perform that action at this time.