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
your_favorite_chill_tracks: | |
title: your favorite chill tracks | |
description: just your most chill tracks | |
main: sequencer | |
config: | |
max_tracks: 30 | |
components: | |
my_liked_tracks: |
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
ability abundance acceptance accountability accuracy achievement acknowledgement acting on convictions activism adaptability administration/control adoration adventure advice affection aging gracefully allowing altruism amazement ambition anger at injustice anticipation apology appeasement appreciation appreciation of appreciation of beauty approbation appropriate conduct appropriate knowledge approval art assertiveness assumptions atonement attention attitude austerity authenticity authority authority/honesty autonomy awareness awe b balance beauty being true to oneself belief benevolence benignity bliss bravery c candor capacity to be loved capacity to love care caring caution celebration celibacy certainty chance change chaos character charity charm chastity cheerfulness chivalry choice citizenship civility clarity class cleanliness coincidence collaboration commitment communication communication/info communion community community/personalist community/supportive companionship compassion competition comple |
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
$ python title_chain.py goats | |
1 Goats On A Boat by The Devil Wears Prada | |
2 Boat To Nowhere by Anoushka Shankar | |
3 Nowhere Man by Bryce Vine | |
4 Man Down by Rihanna | |
5 Down Under by Men At Work | |
6 Under Cover of Darkness by The Strokes | |
7 Darkness Between the Fireflies by Mason Jennings | |
8 Fireflies Made Out Of Dust by Happy Jawbone Family Band |
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
$ python title_chain.py goats | |
1 Goats On A Boat by The Devil Wears Prada | |
2 Boat To Nowhere by Anoushka Shankar | |
3 Nowhere Man by Bryce Vine | |
4 Man Down by Rihanna | |
5 Down Under by Men At Work | |
6 Under Cover of Darkness by The Strokes | |
7 Darkness Between the Fireflies by Mason Jennings | |
8 Fireflies Made Out Of Dust by Happy Jawbone Family Band | |
9 Dust & Gold by OKBADLANDS |
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
import os | |
import os.path | |
import hashlib | |
from httplib import HTTP | |
from urlparse import urlparse | |
import urllib | |
import urllib2 | |
import simplejson as json | |
def get_export_map_for_directory(path, prefix = "/"): |
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 pbl import * | |
gold = Concatenate([ArtistTopTracks('Sia'), ArtistTopTracks('Katy Perry')]) | |
norm = PlaylistSource("Today's Top Hits") | |
radio = Alternate([norm, norm, norm, Shuffler(gold)]) | |
radio = PlaylistSave(radio, 'cynical radio', 'plamere', max_size=40) |
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
for start in xrange(0, 10000, page_size): | |
response = en.get('catalog/read', id=tpid, start=start, | |
results=page_size, bucket=['id:spotify']) | |
if len(response['catalog']['items']) == 0: | |
break | |
spaids = [] | |
for item in response['catalog']['items']: | |
if 'artist_name' in item: | |
spid = item['request']['item_id'] |
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
import sys | |
from bs4 import BeautifulSoup | |
import json | |
import pyen | |
en = pyen.Pyen() | |
def get_fid(artist, idspace): | |
if 'foreign_ids' in artist and len(artist['foreign_ids']) > 0: | |
for fids in artist['foreign_ids']: | |
if fids['catalog'] == idspace: |
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
import pyen | |
import spotipy | |
import sys | |
''' | |
get a set of images for artists that are similar to | |
the given seed artist | |
''' | |
en = pyen.Pyen() |
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
- (void) uploadTrack: (Track *) track { | |
NSDictionary *params = @{ | |
@"filetype" : @"m4a", | |
@"api_key" : self.apiKey, | |
}; | |
NSFileManager *fm = [NSFileManager defaultManager]; | |
NSURL *audioPath = [self pathToAudio:track]; | |
NSString *path = [audioPath path]; | |
NSData *data = [fm contentsAtPath:path]; |
NewerOlder