Skip to content

Instantly share code, notes, and snippets.

View dvtate's full-sized avatar
🐧
chilling

Dustin Van Tate Testa dvtate

🐧
chilling
View GitHub Profile
@dvtate
dvtate / conway.py
Last active June 22, 2016 22:04
python implementation of conway's game of life. (incomplete)
from tkinter import *;
from random import randint;
from time import sleep;
WIDTH = 500;
HEIGHT = 500;
# create the cells matrix
def init_cells(window, population):
global HEIGHT;
@dvtate
dvtate / axiis.pov
Last active June 27, 2016 19:50
a short POV Ray render file I made @ GHP
#version 3.7;
global_settings{ assumed_gamma 1.0 }
#default{ finish{ ambient 0.1 diffuse 0.9 }}
#include "colors.inc"
#include "textures.inc"
#include "glass.inc"
#include "metals.inc"
#include "golds.inc"
@dvtate
dvtate / client.py
Created June 24, 2016 14:21
python server test
import socket;
import sys;
host = "127.0.0.1";
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM);
client_addr = ("127.0.0.1", 10000);
@dvtate
dvtate / Wireframe.pov
Last active July 6, 2016 20:16
wire-frame box with colors and stuff
#version 3.7;
global_settings{ assumed_gamma 1.0 }
#default{ finish{ ambient 0.1 diffuse 0.9 }}
// libraries
#include "colors.inc"
#include "textures.inc"
#include "glass.inc"
#include "metals.inc"
import tkinter as tk;
import random;
import time;
def randomColor():
return "#%03x" % random.randint(0, 0xFFF);
class BouncyBall(object):
#version 3.7;
global_settings{ assumed_gamma 1.0 }
#default{ finish{ ambient 0.1 diffuse 0.9 }}
#include "colors.inc"
light_source {
<50, 20, 10>
color White
@dvtate
dvtate / linked list.py
Last active March 31, 2017 06:34
It's so weird doing this in python...
class Node(object):
def __init__(self):
self.data = None;
self.next = None;
self.prev = None;
def __init__(self):
self.data = None;
self.next = None;
self.prev = None;
@dvtate
dvtate / dice.pov
Last active July 4, 2016 19:55
A die I made for POVRay :)
#version 3.7
global_settings{ assumed_gamma 1.0 }
#default{ finish{ ambient 0.1 diffuse 0.9 }}
#include "colors.inc"
light_source {
<50, 20, 10>
color White
@dvtate
dvtate / game_timer.ino
Last active March 31, 2017 06:32
a game timer/buzzer I made for GHP engineering's saturday build challenge.
#include "Arduino.h"
#include <inttypes.h>
#define BUTTON_PIN 4
#define BUZZ_PIN 5
#define RED_LED_PIN 8
#define GREEN_LED_PIN 9
@dvtate
dvtate / snake.py
Last active October 12, 2016 03:45
follows the mouse..
import tkinter as tk;
import random;
import time;
WIDTH = HEIGHT = 800;
POPULATION = 200;
# returns a hex color between #000 and #FFF in the form of a string