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
# ponysauce.py - mpd streamer for demovibes | |
# Released under the WTFPL license: | |
# http://www.wtfpl.net/txt/copying/ | |
import logging | |
import queuefetcher | |
#from django.core.management import setup_environ | |
#import settings | |
from mpd import MPDClient |
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
// Hi /r/mylittlepony! | |
// This code is released under the WTFPL | |
// http://www.wtfpl.net/about/ | |
from collections import defaultdict | |
f = open('output.csv', 'r') | |
flair = defaultdict(int) | |
for line in f: | |
flair[line.split(',')[1][:-2]] += 1 |