aly / radio.py

0 likes
0 forks
2 files
Last active 1493980561
Generates a shuffled playlist of files in a subdirectory, pops the first item from the playlist, then re-generates a new playlist when the current one is run down. Intended for use with ices
1 #!/usr/bin/env python2
2 from __future__ import print_function
3 import sys
4 from glob import glob
5 from random import shuffle
6 import os.path
7
8 def playdir(directory):
9 def get_playlist():
10 playlist = glob("{}/*.ogg".format(directory))

aly / unread.py

0 likes
0 forks
1 files
Last active 1489047421
Unread, a python script that can be set up in a scheduler to show desktop notifications for Reddit messages. Cross platform!
1 #!/usr/bin/env python3
2 c = {
3 "client_id": "",
4 "client_secret": "",
5 "refresh_token": "" # obtained after running script for first time
6 }
7
8 import os
9 import sys
10 import time