This file contains hidden or 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
| /*jslint evil: true, regexp: true */ | |
| // Create a github object only if one does not already exist. | |
| //TODO: Convert to use github's JSONP endpoints so headers are visible to javascript too - http://developer.github.com/v3/#json-p-callbacks | |
| //TODO: Pagination support - http://developer.github.com/v3/#pagination | |
| var github; | |
| if (!github) { github = {}; } | |
| if (!github.users) { github.users = {}; } | |
| if (!github.repos) { github.repos = {}; } |
This file contains hidden or 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 python3 | |
| ''' | |
| Outputs a youtube playlist, one link per line | |
| If a playlist link is passed as a parameter, it outputs all the links contained in that playlist. | |
| If a search string is passed, it downloads an auto-generated Youtube Mix playlist for the first result of that search term. | |
| If a single Youtube video link is passed, it downloads an auto-generated Youtube Mix playlist for that link. | |
| This script can be piped directly to a player that supports youtube such as mpv | |
| Examples: |