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
# Breakout clone | |
import sys | |
import time | |
import pygame | |
import pygame.gfxdraw | |
display_width = 800 | |
display_height = 600 |
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 googleapiclient.discovery import build | |
DEVELOPER_KEY = "API_KEY" | |
def fetch_all_youtube_videos(channel_id): | |
youtube = build("youtube", "v3", developerKey=DEVELOPER_KEY) | |
res = youtube.search().list( | |
part="snippet", | |
type="video", |
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 apiclient.discovery import build | |
DEVELOPER_KEY = "DEVELOPER_KEY" | |
def fetch_all_youtube_videos(playlistId): | |
youtube = build("youtube", "v3", developerKey=DEVELOPER_KEY) | |
res = youtube.playlistItems().list( | |
part="snippet", | |
playlistId=playlistId, |
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
{ | |
"FREE": 1, | |
"PAID": 2, | |
"album_is_preorder": null, | |
"album_release_date": "25 Jul 2016 00:00:00 GMT", | |
"art_id": 3123380105, | |
"artist": "The GUIGUISUISUI Show", | |
"client_id_sig": "JgcyGE0aZeGemq0ABLzeF3V/AgM=", | |
"current": { | |
"about": "Wu Xing is the first of three EPs that GUIGUISUISUI intends to release, each one themed around one pair of characters from their live performance. The first one is based around the characters of Lord Kamemameha and Lady Chakra, blending ambient sounds, electronic beats with psychedelic guitars and effects laden vocals. Recorded with Yang Haisong (P.K.14, Dear Eloise, After Argument) at Psychic Kong studios and mixed by Shen Lijie (Ran Music) in Beijing, Wu Xing is a collection of songs that conceptually could be interpreted as Kamemameha and Chakra\u2019s eulogy to Neo-Liberalism, inviting listeners to take their hands and be led to a paradise of low-interest, high profit salvation. Yet the bittersweet irony of this tribute is not hard to divin |
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 demjson | |
import re | |
class BandcampJSON: | |
def __init__(self, body, var_name: str, js_data=None): | |
self.body = body | |
self.var_name = var_name | |
self.js_data = js_data |
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 apiclient.discovery import build | |
DEVELOPER_KEY = "API KEY HERE" | |
def fetch_all_youtube_videos(playlistId): | |
youtube = build("youtube", "v3", developerKey=DEVELOPER_KEY) | |
res = youtube.playlistItems().list( | |
part="snippet", |
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
# Name: asyncParse.py | |
# Version: 1.0 | |
# Author: Evolution0 | |
# Email: xxanthonykanexx@gmail.com | |
# Description: Parse URLs in Youtube User's Playlist (Video Playlist not Favorites) | |
# Use python 3.5 and later | |
# Agreement: You can use, modify, or redistribute this tool under | |
# the terms of GNU General Public License (GPLv3). | |
# This tool is for educational purposes only. Any damage you make will not affect the author. | |
# Usage: python asyncParse.py youtubeURLhere |
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
function color() { | |
colors=( | |
"tput setaf 0" "tput setaf 1" | |
"tput setaf 2" "tput setaf 3" | |
"tput setaf 4" "tput setaf 5" | |
"tput setaf 6" "tput setaf 7" | |
) | |
eval colors[$1] | |
} |