This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.db import models | |
from django.contrib import admin | |
POST_TYPES = ( | |
('A', 'Audio'), | |
('V', 'Video'), | |
('U', 'URL'), | |
('Q', 'Quote'), | |
('I', 'Image'), | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
drwxr-xr-x 21 leachim6 leachim6 4096 2008-07-25 20:58 . | |
drwxr-xr-x 27 leachim6 leachim6 4096 2008-07-21 23:20 .. | |
drwxr-xr-x 2 leachim6 leachim6 4096 2008-07-25 20:58 a | |
-rw-r--r-- 1 leachim6 leachim6 100 2008-05-03 08:01 ada.ada | |
-rw-r--r-- 1 leachim6 leachim6 53 2008-05-03 08:01 apc.apc | |
-rw-r--r-- 1 leachim6 leachim6 31 2008-05-03 08:01 applescript.scpt | |
-rw-r--r-- 1 leachim6 leachim6 47 2008-05-03 08:01 awk.awk | |
drwxr-xr-x 2 leachim6 leachim6 4096 2008-07-25 20:58 b | |
-rw-r--r-- 1 leachim6 leachim6 33 2008-07-25 20:27 bash.sh | |
-rw-r--r-- 1 leachim6 leachim6 27 2008-07-25 20:27 befunge.be |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import mpd # Import MPD Library | |
import pyosd # Import OSD Library | |
import time # Import Internal Time Module | |
client = mpd.MPDClient() # Init MPD Client | |
client.connect("localhost", 6600) # Connect to local MPD Server | |
cs = client.currentsong() # Get the currentsong dict | |
if 'title' in cs: # Check to see if "title" title exists in the dict |
NewerOlder