Skip to content

Instantly share code, notes, and snippets.

View mattvenn's full-sized avatar

matt venn mattvenn

View GitHub Profile
@mattvenn
mattvenn / gist:8048066
Last active October 14, 2018 19:41
python turtle demo showing Rule 90 cellular automata
"""
author: matt venn
turtle program to demonstrate a cellular automaton called Rule 90.
http://en.wikipedia.org/wiki/Sierpi%C5%84ski_triangle
It draws patterns that have the appearance of the Sierpinski triangle
http://en.wikipedia.org/wiki/Sierpi%C5%84ski_triangle
Rules: If the current pattern is: 111 110 101 100 011 010 001 000
@mattvenn
mattvenn / turtleprize.com competition entry
Created January 31, 2014 19:06
Author: Ben Jones, School: Lord Grey
from turtle import*
loops = 0
while loops < 100:
loops = loops + 1
forward(100)
left(90)
penup()
forward (30)
left (90)
@mattvenn
mattvenn / turtleprize.com competition entry
Created January 31, 2014 19:10
Author: Grant and Neree, School: unknown
from turtle import *
fillcolor("blue")
shape("square")
#start the fill
begin_fill()
loops = 0
@mattvenn
mattvenn / turtleprize.com competition entry
Created January 31, 2014 19:15
Author: Jon Hansford, School: SHHS
from turtle import *
import random
penup()
a=float(raw_input("starting x"))
b=float(raw_input("starting y"))
i=0
while i<=1000:
n=random.randint(1,3)
if n==1:
a=(a-200)/2
@mattvenn
mattvenn / turtleprize.com competition entry
Created January 31, 2014 19:20
Author: Julie Bartle, School: International College, Sherborne
from turtle import *
cat=100
loops = 0
while loops < 100:
loops +=1
forward (cat)
backward (50)
right (90)
pencolor("red")
forward (50)
@mattvenn
mattvenn / turtleprize.com competition entry
Created December 3, 2014 09:31
Author: Haziq Hussain, School: Woodard
from turtle import *
pencolor(0.8,0.3,0.3)
forward(100)
forward(100)
left(100)
forward(100)
forward(100)
left(100)
@mattvenn
mattvenn / turtleprize.com competition entry
Created December 3, 2014 09:36
Author: Bradley J. Mills, School: Woodard
from turtle import *
shape ("triangle")
speed (90)
for count in range(100):
color("red")
pensize(9)
forward(100)
left(90)
@mattvenn
mattvenn / turtleprize.com competition entry
Created December 3, 2014 09:38
Author: Lewis S. Russell, School: Woodard
from turtle import *
shape ("turtle")
speed(25)
color("blue")
pensize(6)
forward(150)
right(90)
forward(25)
@mattvenn
mattvenn / turtleprize.com competition entry
Created December 3, 2014 09:42
Author: Owen M. McMann, School: Woodard
from turtle import*
loops = 0
while loops < 10:
circle(100)
circle(40,180)
speed(100)
forward(90)
left(70)
penup()
#include <ESP8267WiFi.h>
#include <WiFiClient.h>
#include "secrets.h"
//this will be changed to match oshcamp network
const char *ssid = "WutheringBytes";
WiFiServer server(1337);
#define STROBE 15
void setup()