Skip to content

Instantly share code, notes, and snippets.

View restartthedream's full-sized avatar

Michael Minogue restartthedream

View GitHub Profile
@restartthedream
restartthedream / FIFO Queue
Created December 7, 2014 21:39
An example of in-class work. Construction of a FIFO Queue using nodes in python.
""" Name : Michael Minogue
Course : CMPS 1500-01
Lab Section : Tuesday 11:00 am-12:00 pm
Assignment : hw9pr1
Date : 11/10/2014
"""
class Node:
# data
# next
@restartthedream
restartthedream / Kivy Ball Bounce Basic
Created December 7, 2014 08:50
Original version of my ball bounce on touch kivy program. Used primarily to experiment with different physics settings.
from kivy.app import App
from kivy.uix.widget import Widget
from kivy.properties import NumericProperty, ReferenceListProperty,\
ObjectProperty,ListProperty
from kivy.vector import Vector
from kivy.clock import Clock
from kivy.graphics import Color, Ellipse, Line
from kivy.modules.touchring import*
class BouncyBall(Widget):
@restartthedream
restartthedream / Audio Visualizer 0.2
Created December 7, 2014 08:44
Audio Visualizer w/ color gradient and camera placement
import bpy
def makeMaterial(name, diffuse, specular, alpha): #Easy to use function for making cube materials
mat = bpy.data.materials.new(name)
mat.diffuse_color = diffuse
mat.diffuse_shader = 'LAMBERT'
mat.diffuse_intensity = 1.0
mat.specular_color = specular
mat.specular_shader = 'COOKTORR'
mat.specular_intensity = 0.5