Skip to content

Instantly share code, notes, and snippets.

View Evolution0's full-sized avatar
💭
I may be slow to respond.

Anthony Forsberg Evolution0

💭
I may be slow to respond.
View GitHub Profile
@Evolution0
Evolution0 / breakoutclone.py
Created March 18, 2021 16:09
prototype breakout clone
# Breakout clone
import sys
import time
import pygame
import pygame.gfxdraw
display_width = 800
display_height = 600
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",
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,
{
"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
@Evolution0
Evolution0 / bandcampjson.py
Last active January 4, 2017 02:01
Convert embedded JavaScript dictionary to JSON
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
@Evolution0
Evolution0 / youtubeList.py
Last active July 31, 2018 10:05
Grab Youtube playlist (Full List)
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",
@Evolution0
Evolution0 / asyncParse.py
Last active October 27, 2016 12:04
Credits to: @pantuts for the original script "youParse.py"original took about 6 seconds to grab all 100 urls, this version requires less than 2 generally.
# 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
@Evolution0
Evolution0 / color.sh
Created October 7, 2015 22:28
Batch => Bash COLOR function test gist
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]
}