Skip to content

Instantly share code, notes, and snippets.

View michvaldes001's full-sized avatar

michvaldes001

View GitHub Profile
@michvaldes001
michvaldes001 / Python Web Browser
Last active December 18, 2016 23:48
Simple Python + GTK + Webkit browser V0.1
#!/usr/bin/env python
import gtk, webkit
#addressbar
def go_but(widget):
add = addressbar.get_text()
try:
add.index("://")
@michvaldes001
michvaldes001 / Python Webcam Dance Game
Last active November 25, 2020 18:26
This is a game I wrote in Python. It uses Pygame and OpenCV libraries for video capture and rendering. The objective of the game is to dance in front of the camera and fill the dance meter on the left. You must also stop the "lameness" meter on the right from accumulating. A final score is calculated according to how well you perform. See game i…
#!/usr/bin/env python
#Example of program in action can be found here http://www.youtube.com/watch?v=burYkYiI8vg
import sys, pygame, random, pygame.mixer, cv2
from PIL import Image
import PIL.ImageOps
#Setup