Skip to content

Instantly share code, notes, and snippets.

View scerruti's full-sized avatar

Stephen Cerruti scerruti

View GitHub Profile
import sys
from math import sqrt
class TextWindow:
def __init__(self, width, height, background='.'):
self.screen = []
self.width = width
self.height = height
for _ in range(height):
@scerruti
scerruti / ring.py
Created February 25, 2023 06:21
This script creates a ring of octothorpe (#) characters with optional command line arguments for radius and the width of the interior as a portion of the radius.
import sys
from math import sqrt
def print_circle(circle):
"""
outputs a circle that is stored as a 2D array of characters
:param circle: 2D array of characters
:return:
Fish classPet = new Fish();
while (!isSummerBreak) {
classPet.feedDaily();
}
Thread.sleep(30*24*60*60*1000);
if (!classPet.isAlive()) {
classPet = new Fish();

Keybase proof

I hereby claim:

  • I am scerruti on github.
  • I am scerruti (https://keybase.io/scerruti) on keybase.
  • I have a public key whose fingerprint is 782D E1FA 08EF E2C1 F80A DD65 A653 144E 167C 1F13

To claim this, I am signing this object: