Skip to content

Instantly share code, notes, and snippets.

// 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
@miggyb
miggyb / ponysauce.py
Created September 9, 2014 23:04
ponysauce.py - mpd streamer for demovibes
# 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