Skip to content

Instantly share code, notes, and snippets.

View magi196502's full-sized avatar

Macy Graham-Kimbrough magi196502

View GitHub Profile
@magi196502
magi196502 / Area of a circle - Python
Last active November 11, 2018 12:17 — forked from codecademydev/script.py
Codecademy export
class Circle:
pi = 3.14
def __init__(self, diameter):
self.radius = diameter / 2
def area(self):
return self.pi * self.radius ** 2
def circumference(self):
@magi196502
magi196502 / Basta Fazoolin'
Created November 12, 2018 16:12
Project to demonstrate classes and objects
class Menu:
# The constructor for the menu class.
# Define the initial values for the menu items
def __init__(self, name, items, start_time, end_time):
self.name = name
self.items = items
self.start_time = start_time
self.end_time = end_time
# Define the string representation for the menus
@magi196502
magi196502 / index.html
Created January 31, 2019 20:24
Raindrops
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.3/p5.js"></script>
<script src="sketch.js"></script>
</head>
<body>
</body>
</html>