Skip to content

Instantly share code, notes, and snippets.

View Natedude's full-sized avatar
🤯
SFSU C.S. Summa Cum Laude

Nate Natedude

🤯
SFSU C.S. Summa Cum Laude
View GitHub Profile
@bmorton
bmorton / iTunes
Created March 14, 2011 17:56
iTunes workaround to keep it from launching with the play key
#!/usr/bin/env python
import sys, os, subprocess
launch = True
blocker = ""
apps = ["Vox", "VLC"]
ps = subprocess.Popen("/bin/ps -x", shell=True, stdout=subprocess.PIPE)
// A simple Demo for creating a Java 2D Game Engine
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics2D;
import java.awt.GraphicsConfiguration;
import java.awt.GraphicsEnvironment;
import java.awt.Transparency;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.image.BufferedImage;