Skip to content

Instantly share code, notes, and snippets.

View ashtonmv's full-sized avatar
🎯
Focusing

Michael Ashton ashtonmv

🎯
Focusing
View GitHub Profile
@ashtonmv
ashtonmv / demo.ipynb
Last active September 18, 2020 11:53
Trying to embed Jupyter in a website
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ashtonmv
ashtonmv / ancient_knights_code.py
Created November 15, 2018 09:54
The Ancient Knights Code
class Knight:
def __init___(self, name):
self.name = name
self.l = len(name)
self.honor = 0
def quest1(self):
if self.l > 6:
self.honor += 1
@ashtonmv
ashtonmv / harrys_code.py
Last active April 30, 2018 12:09
A little bonus for you nerds
import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot as plt
ax = plt.figure(figsize=(8, 8)).gca()
ax.plot([0, 10], [0, 0], "k-")
ax.plot([0, 5], [0, 8.66], "k-")
ax.plot([5, 10], [8.66, 0], "k-")
ax.plot([5, 5], [0, 8.66], "k-")