cleaned up prev work
@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"cells": [],
|
|
||||||
"metadata": {},
|
|
||||||
"nbformat": 4,
|
|
||||||
"nbformat_minor": 5
|
|
||||||
}
|
|
@ -1,49 +0,0 @@
|
|||||||
{
|
|
||||||
"cells": [
|
|
||||||
{
|
|
||||||
"cell_type": "code",
|
|
||||||
"execution_count": 1,
|
|
||||||
"id": "1cb5571e-af37-47eb-ba2d-5c10c87fbb9e",
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": [],
|
|
||||||
"source": [
|
|
||||||
"class tridentLeaf:\n",
|
|
||||||
" def __init__(self,something,somethingelse):\n",
|
|
||||||
" self.leftProng = None\n",
|
|
||||||
" self.middleProng = None\n",
|
|
||||||
" self.rightProng = None\n",
|
|
||||||
" self.something = something\n",
|
|
||||||
" self.somethingelse = somethingelse"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"cell_type": "code",
|
|
||||||
"execution_count": null,
|
|
||||||
"id": "6c797c5b-e7e0-432f-9a85-27e7c6e1bdc9",
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": [],
|
|
||||||
"source": []
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"metadata": {
|
|
||||||
"kernelspec": {
|
|
||||||
"display_name": "Python 3 (ipykernel)",
|
|
||||||
"language": "python",
|
|
||||||
"name": "python3"
|
|
||||||
},
|
|
||||||
"language_info": {
|
|
||||||
"codemirror_mode": {
|
|
||||||
"name": "ipython",
|
|
||||||
"version": 3
|
|
||||||
},
|
|
||||||
"file_extension": ".py",
|
|
||||||
"mimetype": "text/x-python",
|
|
||||||
"name": "python",
|
|
||||||
"nbconvert_exporter": "python",
|
|
||||||
"pygments_lexer": "ipython3",
|
|
||||||
"version": "3.9.7"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nbformat": 4,
|
|
||||||
"nbformat_minor": 5
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"cells": [],
|
|
||||||
"metadata": {},
|
|
||||||
"nbformat": 4,
|
|
||||||
"nbformat_minor": 5
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"cells": [],
|
|
||||||
"metadata": {},
|
|
||||||
"nbformat": 4,
|
|
||||||
"nbformat_minor": 5
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"cells": [],
|
|
||||||
"metadata": {},
|
|
||||||
"nbformat": 4,
|
|
||||||
"nbformat_minor": 5
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"cells": [],
|
|
||||||
"metadata": {},
|
|
||||||
"nbformat": 4,
|
|
||||||
"nbformat_minor": 5
|
|
||||||
}
|
|
@ -1,12 +0,0 @@
|
|||||||
# ABOUT
|
|
||||||
A series of programs that builds on the tree structure, an abstract data
|
|
||||||
type used for presenting, storing and searching information
|
|
||||||
|
|
||||||
# VALUE IN MEDIA ARCHAEOLOGY
|
|
||||||
# VALUE IN CRITICAL STUDIES
|
|
||||||
# FORMAT
|
|
||||||
Textual outputs are stored as txt files, and image outputs are stored as image files. The program process is stored in Jupyter Notebooks.
|
|
||||||
# WHERE IS THIS FORKED FROM
|
|
||||||
# FORK YOUR OWN
|
|
||||||
|
|
||||||
|
|
@ -1,111 +0,0 @@
|
|||||||
from cgitb import html
|
|
||||||
import time
|
|
||||||
|
|
||||||
fruit_list = ["apricot","blood orange","currant","durian","egg fruit","fig","guava",
|
|
||||||
"hawthorne","jujube","kiwi","lychee","mandarin","nectarine","olive","persimmon","quandong","rambutan","star fruit",
|
|
||||||
"tangor","ugli fruit","vanilla","water chestnut","ximenia","yuzu","zhe"]
|
|
||||||
|
|
||||||
class letterLeaf:
|
|
||||||
def __init__(self,letter,wordFruit):
|
|
||||||
self.leftAlphabet = None
|
|
||||||
self.rightAlphabet = None
|
|
||||||
self.letter = letter
|
|
||||||
self.wordFruit = wordFruit
|
|
||||||
|
|
||||||
COUNT = [3]
|
|
||||||
empty_string = " "
|
|
||||||
|
|
||||||
def print2DUtil_flat(root, space, growth_rate, html_file):
|
|
||||||
if (root == None) :
|
|
||||||
return
|
|
||||||
|
|
||||||
space += COUNT[0]
|
|
||||||
print2DUtil_flat(root.rightAlphabet, space,growth_rate, html_file)
|
|
||||||
|
|
||||||
|
|
||||||
html_file.write("<span>")
|
|
||||||
#for i in range(COUNT[0], space):
|
|
||||||
# html_file.write(" ")
|
|
||||||
|
|
||||||
html_file.write(root.letter + "<br>")
|
|
||||||
html_file.write("</span>")
|
|
||||||
|
|
||||||
html_file.write("\n")
|
|
||||||
|
|
||||||
|
|
||||||
html_file.write(root.wordFruit + "<br>")
|
|
||||||
html_file.write("\n")
|
|
||||||
|
|
||||||
print2DUtil_flat(root.leftAlphabet, space, growth_rate, html_file)
|
|
||||||
|
|
||||||
def print2D(root, growth_rate, html_file):
|
|
||||||
print("here is a tree that's laying on the ground: ")
|
|
||||||
print2DUtil_flat(root, 0, growth_rate, html_file)
|
|
||||||
|
|
||||||
def grepFirstLetter(word):
|
|
||||||
firstLetter = word[0]
|
|
||||||
return firstLetter
|
|
||||||
|
|
||||||
def insertLeaf(root,wordFruit):
|
|
||||||
letter = grepFirstLetter(wordFruit)
|
|
||||||
newleaf = letterLeaf(letter,wordFruit)
|
|
||||||
x = root
|
|
||||||
y = None
|
|
||||||
|
|
||||||
while (x != None):
|
|
||||||
y = x
|
|
||||||
if (letter < x.letter):
|
|
||||||
x = x.leftAlphabet
|
|
||||||
else:
|
|
||||||
x = x.rightAlphabet
|
|
||||||
|
|
||||||
if (y == None):
|
|
||||||
y = newleaf
|
|
||||||
|
|
||||||
elif (letter < y.letter):
|
|
||||||
y.leftAlphabet = newleaf
|
|
||||||
|
|
||||||
else:
|
|
||||||
y.rightAlphabet = newleaf
|
|
||||||
|
|
||||||
return y
|
|
||||||
|
|
||||||
import random
|
|
||||||
|
|
||||||
root = None
|
|
||||||
|
|
||||||
random_fruit = random.choice(fruit_list)
|
|
||||||
root = insertLeaf(root, random_fruit)
|
|
||||||
fruit_list.remove(random_fruit)
|
|
||||||
len_list = (len(fruit_list))
|
|
||||||
|
|
||||||
while len_list > 0:
|
|
||||||
random_fruit = random.choice(fruit_list)
|
|
||||||
insertLeaf(root,random_fruit)
|
|
||||||
fruit_list.remove(random_fruit)
|
|
||||||
len_list -= 1
|
|
||||||
|
|
||||||
|
|
||||||
def ask_input():
|
|
||||||
growth_rate = int(input("Enter growth rate value for tree in seconds: "))
|
|
||||||
return growth_rate
|
|
||||||
|
|
||||||
growth_rate = ask_input()
|
|
||||||
|
|
||||||
html_file = open("a_letter_tree_web.html","w")
|
|
||||||
|
|
||||||
html_file.write("<html>\n<head>\n")
|
|
||||||
html_file.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n")
|
|
||||||
html_file.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"style.css\" />\n")
|
|
||||||
html_file.write("</head>\n")
|
|
||||||
html_file.write("<body>\n")
|
|
||||||
html_file.write("<title> A Letter Tree </title>\n")
|
|
||||||
html_file.write("<h1> A Letter Tree </h1>")
|
|
||||||
|
|
||||||
print2D(root, growth_rate, html_file)
|
|
||||||
|
|
||||||
html_file.write("\n</body>\n</html>")
|
|
||||||
html_file.close()
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,49 +0,0 @@
|
|||||||
{
|
|
||||||
"cells": [
|
|
||||||
{
|
|
||||||
"cell_type": "markdown",
|
|
||||||
"id": "23070ca4-55cc-4a58-97d5-cb2fcb9c30a2",
|
|
||||||
"metadata": {},
|
|
||||||
"source": [
|
|
||||||
"# todo \n",
|
|
||||||
"modify the tree print out to show the dots and dashes \n",
|
|
||||||
"take a user input in morse code, and use the binary tree to decode the message one character at a time\n",
|
|
||||||
"translate the dot dash signals into other forms of pulsations: LED light, sound to be sent out via radio signal, ?FSK (written on the code memo)\n",
|
|
||||||
"would be nice to emphasize the traversal aspect, can it be displayed / heard - traversing to the dot! traversing to the dash! make it procedural -> maybe console can be helpful "
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"cell_type": "code",
|
|
||||||
"execution_count": null,
|
|
||||||
"id": "6ca5a800-4180-43bc-9a1c-ba260b9f207a",
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": [],
|
|
||||||
"source": [
|
|
||||||
"# reference project\n",
|
|
||||||
"# https://microbit-micropython.readthedocs.io/en/latest/tutorials/radio.html\n",
|
|
||||||
"# https://new.pythonforengineers.com/blog/audio-and-digital-signal-processingdsp-in-python/"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"metadata": {
|
|
||||||
"kernelspec": {
|
|
||||||
"display_name": "Python 3 (ipykernel)",
|
|
||||||
"language": "python",
|
|
||||||
"name": "python3"
|
|
||||||
},
|
|
||||||
"language_info": {
|
|
||||||
"codemirror_mode": {
|
|
||||||
"name": "ipython",
|
|
||||||
"version": 3
|
|
||||||
},
|
|
||||||
"file_extension": ".py",
|
|
||||||
"mimetype": "text/x-python",
|
|
||||||
"name": "python",
|
|
||||||
"nbconvert_exporter": "python",
|
|
||||||
"pygments_lexer": "ipython3",
|
|
||||||
"version": "3.9.7"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nbformat": 4,
|
|
||||||
"nbformat_minor": 5
|
|
||||||
}
|
|
@ -1,33 +0,0 @@
|
|||||||
{
|
|
||||||
"cells": [
|
|
||||||
{
|
|
||||||
"cell_type": "code",
|
|
||||||
"execution_count": null,
|
|
||||||
"id": "2b1fd5e7-4734-46ad-b57f-8c05acd86338",
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": [],
|
|
||||||
"source": []
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"metadata": {
|
|
||||||
"kernelspec": {
|
|
||||||
"display_name": "Python 3 (ipykernel)",
|
|
||||||
"language": "python",
|
|
||||||
"name": "python3"
|
|
||||||
},
|
|
||||||
"language_info": {
|
|
||||||
"codemirror_mode": {
|
|
||||||
"name": "ipython",
|
|
||||||
"version": 3
|
|
||||||
},
|
|
||||||
"file_extension": ".py",
|
|
||||||
"mimetype": "text/x-python",
|
|
||||||
"name": "python",
|
|
||||||
"nbconvert_exporter": "python",
|
|
||||||
"pygments_lexer": "ipython3",
|
|
||||||
"version": "3.9.7"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nbformat": 4,
|
|
||||||
"nbformat_minor": 5
|
|
||||||
}
|
|
@ -1,53 +0,0 @@
|
|||||||
{
|
|
||||||
"cells": [
|
|
||||||
{
|
|
||||||
"cell_type": "markdown",
|
|
||||||
"id": "d620c21c-89d5-4b37-888f-79212671d7db",
|
|
||||||
"metadata": {},
|
|
||||||
"source": [
|
|
||||||
"# a raspberry orange tree"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"cell_type": "code",
|
|
||||||
"execution_count": null,
|
|
||||||
"id": "343265dc-49bd-4220-96aa-3ed2fbd1a54e",
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": [],
|
|
||||||
"source": [
|
|
||||||
"# https://www.reddit.com/r/aldi/comments/kqxzuc/the_raspberry_oranges_are_wonderful/"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"cell_type": "code",
|
|
||||||
"execution_count": null,
|
|
||||||
"id": "f519c19c-03f2-4332-be12-fd3beab81cb7",
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": [],
|
|
||||||
"source": [
|
|
||||||
"# pigment is shared between the raspberry species and the raspberry orange species"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"metadata": {
|
|
||||||
"kernelspec": {
|
|
||||||
"display_name": "Python 3 (ipykernel)",
|
|
||||||
"language": "python",
|
|
||||||
"name": "python3"
|
|
||||||
},
|
|
||||||
"language_info": {
|
|
||||||
"codemirror_mode": {
|
|
||||||
"name": "ipython",
|
|
||||||
"version": 3
|
|
||||||
},
|
|
||||||
"file_extension": ".py",
|
|
||||||
"mimetype": "text/x-python",
|
|
||||||
"name": "python",
|
|
||||||
"nbconvert_exporter": "python",
|
|
||||||
"pygments_lexer": "ipython3",
|
|
||||||
"version": "3.9.7"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nbformat": 4,
|
|
||||||
"nbformat_minor": 5
|
|
||||||
}
|
|
@ -1,33 +0,0 @@
|
|||||||
{
|
|
||||||
"cells": [
|
|
||||||
{
|
|
||||||
"cell_type": "code",
|
|
||||||
"execution_count": null,
|
|
||||||
"id": "574ccf52-a1c4-46b4-b7cc-7cea29cc6ff5",
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": [],
|
|
||||||
"source": []
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"metadata": {
|
|
||||||
"kernelspec": {
|
|
||||||
"display_name": "Python 3 (ipykernel)",
|
|
||||||
"language": "python",
|
|
||||||
"name": "python3"
|
|
||||||
},
|
|
||||||
"language_info": {
|
|
||||||
"codemirror_mode": {
|
|
||||||
"name": "ipython",
|
|
||||||
"version": 3
|
|
||||||
},
|
|
||||||
"file_extension": ".py",
|
|
||||||
"mimetype": "text/x-python",
|
|
||||||
"name": "python",
|
|
||||||
"nbconvert_exporter": "python",
|
|
||||||
"pygments_lexer": "ipython3",
|
|
||||||
"version": "3.9.7"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nbformat": 4,
|
|
||||||
"nbformat_minor": 5
|
|
||||||
}
|
|
@ -1,194 +0,0 @@
|
|||||||
{
|
|
||||||
"cells": [
|
|
||||||
{
|
|
||||||
"cell_type": "markdown",
|
|
||||||
"id": "f9f2a93f-62ee-411a-a8dd-2a6745444c02",
|
|
||||||
"metadata": {},
|
|
||||||
"source": [
|
|
||||||
"# a sample tree, the starter program to begin all the trees with"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"cell_type": "code",
|
|
||||||
"execution_count": null,
|
|
||||||
"id": "c0e9adc4-5400-491d-a6bd-4ae93b4fbb38",
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": [],
|
|
||||||
"source": [
|
|
||||||
"\"\"\"Python3 program to demonstrate insert\n",
|
|
||||||
"operation in binary search tree \"\"\"\n",
|
|
||||||
"\n",
|
|
||||||
"# A Binary Tree Node\n",
|
|
||||||
"# Utility function to create a\n",
|
|
||||||
"# new tree node\n",
|
|
||||||
"class newNode:\n",
|
|
||||||
"\n",
|
|
||||||
" # Constructor to create a newNode\n",
|
|
||||||
" def __init__(self, data):\n",
|
|
||||||
" self.key= data\n",
|
|
||||||
" self.left = None\n",
|
|
||||||
" self.right = self.parent = None\n",
|
|
||||||
"\n",
|
|
||||||
"# A utility function to insert a new\n",
|
|
||||||
"# Node with given key in BST\n",
|
|
||||||
"def insert(root, key):\n",
|
|
||||||
"\n",
|
|
||||||
" # Create a new Node containing\n",
|
|
||||||
" # the new element\n",
|
|
||||||
" newnode = newNode(key)\n",
|
|
||||||
"\n",
|
|
||||||
" # Pointer to start traversing from root\n",
|
|
||||||
" # and traverses downward path to search\n",
|
|
||||||
" # where the new node to be inserted\n",
|
|
||||||
" x = root\n",
|
|
||||||
"\n",
|
|
||||||
" # Pointer y maintains the trailing\n",
|
|
||||||
" # pointer of x\n",
|
|
||||||
" y = None\n",
|
|
||||||
"\n",
|
|
||||||
" while (x != None):\n",
|
|
||||||
" y = x\n",
|
|
||||||
" if (key < x.key):\n",
|
|
||||||
" x = x.left\n",
|
|
||||||
" else:\n",
|
|
||||||
" x = x.right\n",
|
|
||||||
" \n",
|
|
||||||
" # If the root is None i.e the tree is\n",
|
|
||||||
" # empty. The new node is the root node\n",
|
|
||||||
" if (y == None):\n",
|
|
||||||
" y = newnode\n",
|
|
||||||
"\n",
|
|
||||||
" # If the new key is less then the leaf node key\n",
|
|
||||||
" # Assign the new node to be its left child\n",
|
|
||||||
" elif (key < y.key):\n",
|
|
||||||
" y.left = newnode\n",
|
|
||||||
"\n",
|
|
||||||
" # else assign the new node its\n",
|
|
||||||
" # right child\n",
|
|
||||||
" else:\n",
|
|
||||||
" y.right = newnode\n",
|
|
||||||
"\n",
|
|
||||||
" # Returns the pointer where the\n",
|
|
||||||
" # new node is inserted\n",
|
|
||||||
" return y\n",
|
|
||||||
"\n",
|
|
||||||
"# A utility function to do inorder\n",
|
|
||||||
"# traversal of BST\n",
|
|
||||||
"def Inorder(root) :\n",
|
|
||||||
"\n",
|
|
||||||
" if (root == None) :\n",
|
|
||||||
" return\n",
|
|
||||||
" else:\n",
|
|
||||||
" Inorder(root.left)\n",
|
|
||||||
" print( root.key, end = \" \" )\n",
|
|
||||||
" Inorder(root.right)\n",
|
|
||||||
"\n",
|
|
||||||
"#Driver Code\n",
|
|
||||||
"if __name__ == '__main__':\n",
|
|
||||||
"\n",
|
|
||||||
" root = None\n",
|
|
||||||
" root = insert(root, \"m\")\n",
|
|
||||||
" insert(root, \"n\")\n",
|
|
||||||
" insert(root, \"l\")\n",
|
|
||||||
" insert(root, \"p\")\n",
|
|
||||||
" insert(root, \"q\")\n",
|
|
||||||
" insert(root, \"a\")\n",
|
|
||||||
" insert(root, \"b\")\n",
|
|
||||||
"\n",
|
|
||||||
"\n",
|
|
||||||
" # Pr inorder traversal of the BST\n",
|
|
||||||
"\n",
|
|
||||||
"\n",
|
|
||||||
"# This code is contributed by\n",
|
|
||||||
"# SHUBHAMSINGH10"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"cell_type": "code",
|
|
||||||
"execution_count": 3,
|
|
||||||
"id": "921f4017-3f1f-4085-8da8-cc850fbd4c6e",
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": [
|
|
||||||
{
|
|
||||||
"name": "stdout",
|
|
||||||
"output_type": "stream",
|
|
||||||
"text": [
|
|
||||||
"\n",
|
|
||||||
" q\n",
|
|
||||||
"\n",
|
|
||||||
" p\n",
|
|
||||||
"\n",
|
|
||||||
" n\n",
|
|
||||||
"\n",
|
|
||||||
"m\n",
|
|
||||||
"\n",
|
|
||||||
" l\n",
|
|
||||||
"\n",
|
|
||||||
" b\n",
|
|
||||||
"\n",
|
|
||||||
" a\n"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"source": [
|
|
||||||
"# print binary tree in 2D copied from sample program\n",
|
|
||||||
"COUNT = [10]\n",
|
|
||||||
"def print2DUtil(root, space) :\n",
|
|
||||||
"\n",
|
|
||||||
" # Base case\n",
|
|
||||||
" if (root == None) :\n",
|
|
||||||
" return\n",
|
|
||||||
"\n",
|
|
||||||
" # Increase distance between levels\n",
|
|
||||||
" space += COUNT[0]\n",
|
|
||||||
"\n",
|
|
||||||
" # Process right child first\n",
|
|
||||||
" print2DUtil(root.right, space)\n",
|
|
||||||
"\n",
|
|
||||||
" # Print current node after space\n",
|
|
||||||
" # count\n",
|
|
||||||
" print()\n",
|
|
||||||
" for i in range(COUNT[0], space):\n",
|
|
||||||
" print(end = \" \")\n",
|
|
||||||
" print(root.key)\n",
|
|
||||||
"\n",
|
|
||||||
" # Process left child\n",
|
|
||||||
" print2DUtil(root.left, space)\n",
|
|
||||||
"\n",
|
|
||||||
"# Wrapper over print2DUtil()\n",
|
|
||||||
"def print2D(root) :\n",
|
|
||||||
" \n",
|
|
||||||
" # space=[0]\n",
|
|
||||||
" # Pass initial space count as 0\n",
|
|
||||||
" print2DUtil(root, 0)\n",
|
|
||||||
"\n",
|
|
||||||
"# Driver Code\n",
|
|
||||||
"if __name__ == '__main__':\n",
|
|
||||||
"\n",
|
|
||||||
" \n",
|
|
||||||
" print2D(root)"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"metadata": {
|
|
||||||
"kernelspec": {
|
|
||||||
"display_name": "Python 3 (ipykernel)",
|
|
||||||
"language": "python",
|
|
||||||
"name": "python3"
|
|
||||||
},
|
|
||||||
"language_info": {
|
|
||||||
"codemirror_mode": {
|
|
||||||
"name": "ipython",
|
|
||||||
"version": 3
|
|
||||||
},
|
|
||||||
"file_extension": ".py",
|
|
||||||
"mimetype": "text/x-python",
|
|
||||||
"name": "python",
|
|
||||||
"nbconvert_exporter": "python",
|
|
||||||
"pygments_lexer": "ipython3",
|
|
||||||
"version": "3.9.7"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nbformat": 4,
|
|
||||||
"nbformat_minor": 5
|
|
||||||
}
|
|
@ -1,33 +0,0 @@
|
|||||||
{
|
|
||||||
"cells": [
|
|
||||||
{
|
|
||||||
"cell_type": "code",
|
|
||||||
"execution_count": null,
|
|
||||||
"id": "c17f30da-2c18-4e79-9000-a4e1757d076c",
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": [],
|
|
||||||
"source": []
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"metadata": {
|
|
||||||
"kernelspec": {
|
|
||||||
"display_name": "Python 3 (ipykernel)",
|
|
||||||
"language": "python",
|
|
||||||
"name": "python3"
|
|
||||||
},
|
|
||||||
"language_info": {
|
|
||||||
"codemirror_mode": {
|
|
||||||
"name": "ipython",
|
|
||||||
"version": 3
|
|
||||||
},
|
|
||||||
"file_extension": ".py",
|
|
||||||
"mimetype": "text/x-python",
|
|
||||||
"name": "python",
|
|
||||||
"nbconvert_exporter": "python",
|
|
||||||
"pygments_lexer": "ipython3",
|
|
||||||
"version": "3.9.7"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nbformat": 4,
|
|
||||||
"nbformat_minor": 5
|
|
||||||
}
|
|
@ -1,49 +0,0 @@
|
|||||||
{
|
|
||||||
"cells": [
|
|
||||||
{
|
|
||||||
"cell_type": "code",
|
|
||||||
"execution_count": 1,
|
|
||||||
"id": "1cb5571e-af37-47eb-ba2d-5c10c87fbb9e",
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": [],
|
|
||||||
"source": [
|
|
||||||
"class tridentLeaf:\n",
|
|
||||||
" def __init__(self,something,somethingelse):\n",
|
|
||||||
" self.leftProng = None\n",
|
|
||||||
" self.middleProng = None\n",
|
|
||||||
" self.rightProng = None\n",
|
|
||||||
" self.something = something\n",
|
|
||||||
" self.somethingelse = somethingelse"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"cell_type": "code",
|
|
||||||
"execution_count": null,
|
|
||||||
"id": "6c797c5b-e7e0-432f-9a85-27e7c6e1bdc9",
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": [],
|
|
||||||
"source": []
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"metadata": {
|
|
||||||
"kernelspec": {
|
|
||||||
"display_name": "Python 3 (ipykernel)",
|
|
||||||
"language": "python",
|
|
||||||
"name": "python3"
|
|
||||||
},
|
|
||||||
"language_info": {
|
|
||||||
"codemirror_mode": {
|
|
||||||
"name": "ipython",
|
|
||||||
"version": 3
|
|
||||||
},
|
|
||||||
"file_extension": ".py",
|
|
||||||
"mimetype": "text/x-python",
|
|
||||||
"name": "python",
|
|
||||||
"nbconvert_exporter": "python",
|
|
||||||
"pygments_lexer": "ipython3",
|
|
||||||
"version": "3.9.7"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nbformat": 4,
|
|
||||||
"nbformat_minor": 5
|
|
||||||
}
|
|
@ -1,46 +0,0 @@
|
|||||||
{
|
|
||||||
"cells": [
|
|
||||||
{
|
|
||||||
"cell_type": "markdown",
|
|
||||||
"id": "baf7d8e8-1cc2-4f18-b5a7-ce5bb7c45bef",
|
|
||||||
"metadata": {},
|
|
||||||
"source": [
|
|
||||||
"# a cutting tree"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"cell_type": "code",
|
|
||||||
"execution_count": null,
|
|
||||||
"id": "b6057018-bdeb-429a-8e66-130419251ef9",
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": [],
|
|
||||||
"source": [
|
|
||||||
"# during an evening walk after the marshall fire, i saw a local\n",
|
|
||||||
"# tree trimming company handling trees that were either entirely \n",
|
|
||||||
"# fallen off or were dangling. the trees needed to be removed as\n",
|
|
||||||
"# they may be of hazard for the pedestrians and the road. "
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"metadata": {
|
|
||||||
"kernelspec": {
|
|
||||||
"display_name": "Python 3 (ipykernel)",
|
|
||||||
"language": "python",
|
|
||||||
"name": "python3"
|
|
||||||
},
|
|
||||||
"language_info": {
|
|
||||||
"codemirror_mode": {
|
|
||||||
"name": "ipython",
|
|
||||||
"version": 3
|
|
||||||
},
|
|
||||||
"file_extension": ".py",
|
|
||||||
"mimetype": "text/x-python",
|
|
||||||
"name": "python",
|
|
||||||
"nbconvert_exporter": "python",
|
|
||||||
"pygments_lexer": "ipython3",
|
|
||||||
"version": "3.9.7"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nbformat": 4,
|
|
||||||
"nbformat_minor": 5
|
|
||||||
}
|
|
@ -1,33 +0,0 @@
|
|||||||
{
|
|
||||||
"cells": [
|
|
||||||
{
|
|
||||||
"cell_type": "code",
|
|
||||||
"execution_count": null,
|
|
||||||
"id": "cd29e163-6a53-4f3a-a6c7-d6489f85f405",
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": [],
|
|
||||||
"source": []
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"metadata": {
|
|
||||||
"kernelspec": {
|
|
||||||
"display_name": "Python 3 (ipykernel)",
|
|
||||||
"language": "python",
|
|
||||||
"name": "python3"
|
|
||||||
},
|
|
||||||
"language_info": {
|
|
||||||
"codemirror_mode": {
|
|
||||||
"name": "ipython",
|
|
||||||
"version": 3
|
|
||||||
},
|
|
||||||
"file_extension": ".py",
|
|
||||||
"mimetype": "text/x-python",
|
|
||||||
"name": "python",
|
|
||||||
"nbconvert_exporter": "python",
|
|
||||||
"pygments_lexer": "ipython3",
|
|
||||||
"version": "3.9.7"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nbformat": 4,
|
|
||||||
"nbformat_minor": 5
|
|
||||||
}
|
|
@ -1,33 +0,0 @@
|
|||||||
{
|
|
||||||
"cells": [
|
|
||||||
{
|
|
||||||
"cell_type": "code",
|
|
||||||
"execution_count": null,
|
|
||||||
"id": "65ca64ef-5513-45b8-8e06-7538efd2b6c1",
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": [],
|
|
||||||
"source": []
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"metadata": {
|
|
||||||
"kernelspec": {
|
|
||||||
"display_name": "Python 3 (ipykernel)",
|
|
||||||
"language": "python",
|
|
||||||
"name": "python3"
|
|
||||||
},
|
|
||||||
"language_info": {
|
|
||||||
"codemirror_mode": {
|
|
||||||
"name": "ipython",
|
|
||||||
"version": 3
|
|
||||||
},
|
|
||||||
"file_extension": ".py",
|
|
||||||
"mimetype": "text/x-python",
|
|
||||||
"name": "python",
|
|
||||||
"nbconvert_exporter": "python",
|
|
||||||
"pygments_lexer": "ipython3",
|
|
||||||
"version": "3.9.7"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nbformat": 4,
|
|
||||||
"nbformat_minor": 5
|
|
||||||
}
|
|
@ -1,43 +0,0 @@
|
|||||||
{
|
|
||||||
"cells": [
|
|
||||||
{
|
|
||||||
"cell_type": "markdown",
|
|
||||||
"id": "2691ed6e-f79f-4b86-abee-e8453d20c528",
|
|
||||||
"metadata": {},
|
|
||||||
"source": [
|
|
||||||
"# an html tree"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"cell_type": "code",
|
|
||||||
"execution_count": null,
|
|
||||||
"id": "d8ba1dd7-1f42-4eb0-84a2-0bee2fc96f49",
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": [],
|
|
||||||
"source": [
|
|
||||||
"#"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"metadata": {
|
|
||||||
"kernelspec": {
|
|
||||||
"display_name": "Python 3 (ipykernel)",
|
|
||||||
"language": "python",
|
|
||||||
"name": "python3"
|
|
||||||
},
|
|
||||||
"language_info": {
|
|
||||||
"codemirror_mode": {
|
|
||||||
"name": "ipython",
|
|
||||||
"version": 3
|
|
||||||
},
|
|
||||||
"file_extension": ".py",
|
|
||||||
"mimetype": "text/x-python",
|
|
||||||
"name": "python",
|
|
||||||
"nbconvert_exporter": "python",
|
|
||||||
"pygments_lexer": "ipython3",
|
|
||||||
"version": "3.9.7"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nbformat": 4,
|
|
||||||
"nbformat_minor": 5
|
|
||||||
}
|
|
@ -1,33 +0,0 @@
|
|||||||
{
|
|
||||||
"cells": [
|
|
||||||
{
|
|
||||||
"cell_type": "code",
|
|
||||||
"execution_count": null,
|
|
||||||
"id": "8ffb184c-7941-44a6-84c4-422ba9deac43",
|
|
||||||
"metadata": {},
|
|
||||||
"outputs": [],
|
|
||||||
"source": []
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"metadata": {
|
|
||||||
"kernelspec": {
|
|
||||||
"display_name": "Python 3 (ipykernel)",
|
|
||||||
"language": "python",
|
|
||||||
"name": "python3"
|
|
||||||
},
|
|
||||||
"language_info": {
|
|
||||||
"codemirror_mode": {
|
|
||||||
"name": "ipython",
|
|
||||||
"version": 3
|
|
||||||
},
|
|
||||||
"file_extension": ".py",
|
|
||||||
"mimetype": "text/x-python",
|
|
||||||
"name": "python",
|
|
||||||
"nbconvert_exporter": "python",
|
|
||||||
"pygments_lexer": "ipython3",
|
|
||||||
"version": "3.9.7"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nbformat": 4,
|
|
||||||
"nbformat_minor": 5
|
|
||||||
}
|
|
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 57 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 220 KiB After Width: | Height: | Size: 220 KiB |
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 55 KiB |
Before Width: | Height: | Size: 445 KiB After Width: | Height: | Size: 445 KiB |
Before Width: | Height: | Size: 430 KiB After Width: | Height: | Size: 430 KiB |
Before Width: | Height: | Size: 434 KiB After Width: | Height: | Size: 434 KiB |
Before Width: | Height: | Size: 509 KiB After Width: | Height: | Size: 509 KiB |
Before Width: | Height: | Size: 2.6 MiB After Width: | Height: | Size: 2.6 MiB |
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 8.9 KiB |
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 93 KiB After Width: | Height: | Size: 93 KiB |
Before Width: | Height: | Size: 418 KiB After Width: | Height: | Size: 418 KiB |
Before Width: | Height: | Size: 320 KiB After Width: | Height: | Size: 320 KiB |
Before Width: | Height: | Size: 93 KiB After Width: | Height: | Size: 93 KiB |
Before Width: | Height: | Size: 196 KiB After Width: | Height: | Size: 196 KiB |
Before Width: | Height: | Size: 186 KiB After Width: | Height: | Size: 186 KiB |
Before Width: | Height: | Size: 194 KiB After Width: | Height: | Size: 194 KiB |
Before Width: | Height: | Size: 133 KiB After Width: | Height: | Size: 133 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 94 KiB After Width: | Height: | Size: 94 KiB |
Before Width: | Height: | Size: 134 KiB After Width: | Height: | Size: 134 KiB |
Before Width: | Height: | Size: 100 KiB After Width: | Height: | Size: 100 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 214 KiB After Width: | Height: | Size: 214 KiB |
Before Width: | Height: | Size: 204 KiB After Width: | Height: | Size: 204 KiB |
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 57 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 136 KiB After Width: | Height: | Size: 136 KiB |
Before Width: | Height: | Size: 87 KiB After Width: | Height: | Size: 87 KiB |
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 70 KiB |
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 84 KiB |
Before Width: | Height: | Size: 185 KiB After Width: | Height: | Size: 185 KiB |
Before Width: | Height: | Size: 83 KiB After Width: | Height: | Size: 83 KiB |
Before Width: | Height: | Size: 261 KiB After Width: | Height: | Size: 261 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 96 KiB After Width: | Height: | Size: 96 KiB |
Before Width: | Height: | Size: 280 KiB After Width: | Height: | Size: 280 KiB |
Before Width: | Height: | Size: 244 KiB After Width: | Height: | Size: 244 KiB |
Before Width: | Height: | Size: 388 KiB After Width: | Height: | Size: 388 KiB |
Before Width: | Height: | Size: 205 KiB After Width: | Height: | Size: 205 KiB |
Before Width: | Height: | Size: 107 KiB After Width: | Height: | Size: 107 KiB |
@ -0,0 +1 @@
|
|||||||
|
remove the empty projects that i will no longer work on
|
@ -0,0 +1,26 @@
|
|||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||||
|
<link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" />
|
||||||
|
<script defer src="https://pyscript.net/alpha/pyscript.js"></script>
|
||||||
|
|
||||||
|
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<title> A Letter Tree </title>
|
||||||
|
|
||||||
|
|
||||||
|
<h1> A Letter Tree </h1>
|
||||||
|
<body>
|
||||||
|
<div id="console-embed"></div>
|
||||||
|
|
||||||
|
<!-- adjust trinket iframe style> <-->
|
||||||
|
<iframe src="https://trinket.io/embed/python3/3e17f35d95?start=result" width="100%" height="600" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>
|
||||||
|
<div>Layout created by recursive process:
|
||||||
|
<img src="fig_18_1.png">
|
||||||
|
Source: Metamagical Themas, pt4, Structure and strangeness.
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|