Skip to content

Instantly share code, notes, and snippets.

View foresmac's full-sized avatar

Chris Foresman foresmac

  • PayPal
  • East Tennessee
  • 22:30 (UTC -04:00)
View GitHub Profile
from sense_hat import SenseHat
import time
p = (128, 0, 255)
b = (0, 0, 0)
frame1 = [
b, b, b, b, b, b, b, b,
b, b, b, b, b, b, b, b,
b, b, b, b, b, b, b, b,
# I found this on stack overflow but I forget where.
def is_prime(n):
""""pre-condition: n is a nonnegative integer
post-condition: return True if n is prime and False otherwise."""
if n < 2:
return False;
if n % 2 == 0:
return n == 2 # return False
k = 3
# just some sample code I made for demonstrating the turtle lib in Python
import turtle
import math
import random
turtle.colormode(255)
RGBCMY = [