Skip to content

Instantly share code, notes, and snippets.

View mszegedy's full-sized avatar

Maria Szegedy mszegedy

  • Rutgers University, Khare Lab
View GitHub Profile
@mszegedy
mszegedy / Maxwell's Demon.py
Last active December 21, 2015 13:39
Maxwell's Demon
import math
from random import random,choice
from scene import *
# An explanation for anyone wondering what this is: this is a game I wrote for
# Pythonista for the iPhone on a boring plane ride from Budapest to Muenchen.
# The credit for the idea goes to my father, although he apparently doesn't
# remember coming up with it. You play as Maxwell's Demon, trying to get all
# the balls on the screen on one side of the barrier by manipulating a little
# gate. The controls are simple; just tap the screen to toggle the gate.
@whym
whym / keylogger.py
Created May 16, 2010 10:09
A simple key logger with xlib and python. Use with gist:402589
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# This script is an modification of the script below.
#
#
# examples/record_demo.py -- demonstrate record extension
#