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 / 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 / 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;
#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
import tkinter as tk;
import random;
import time;
def randomColor():
return "#%03x" % random.randint(0, 0xFFF);
class BouncyBall(object):
@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"
@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 / 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 / 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 / codequest_prob07_2014.java
Last active June 9, 2016 23:28
a morse code translator I made as practice for codequest 2015
import java.io.*;
import java.util.Scanner;
import java.util.ArrayList;
import java.util.Collections;//arrayList and .sort()
import java.util.*;
/**Morse Code translator
*-Summary:
* Translates text to morse code until it reaches
* "END OF TRANSMISSION" where it translates morse to text
*-Date: 4-29-2015
@dvtate
dvtate / dav.cs
Last active March 31, 2017 06:37
a helloworld application was all it took to tell me that C# wasn't for me...
using System;
class Dav {
string name;
bool noname = false;//default = no-loop
static void Main(){//run once @ start-up