Skip to content

Instantly share code, notes, and snippets.

View AgeOfMarcus's full-sized avatar
💭
getting schooled

Marcus Weinberger AgeOfMarcus

💭
getting schooled
View GitHub Profile
@AgeOfMarcus
AgeOfMarcus / spotify_playlist_combine.py
Last active March 20, 2022 19:08
Python script using the spotipy library to merge multiple child playlists' tracks into one parent playlist without duplicates.
'''
Name : spotify_playlist_combine.py
Author : Marcus Weinberger
About : This program takes multiple "child" playlists and combines their tracks
(without duplicates). Then, tracks from playlists marked for removal are
removed from the list. The parent playlist is emptied, and all tracks added.
You might need to run it a couple times because it throws errors and idk why,
but run it twice and usually it will have done all it needs to.
'''
@AgeOfMarcus
AgeOfMarcus / user.js
Created November 30, 2021 01:08
Return Youtube Dislikes
// ==UserScript==
// @name Return YouTube Dislike
// @namespace https://www.returnyoutubedislike.com/
// @version 0.5
// @description Return of the YouTube Dislike, Based off https://www.returnyoutubedislike.com/
// @author Anarios & JRWR
// @match *://*.youtube.com/watch*
// @compatible chrome
// @compatible firefox
// @compatible opera
@AgeOfMarcus
AgeOfMarcus / canvas_save_quiz.js
Created October 13, 2021 16:27
Canvas Quiz Savedata
// get answers
var answers = {}
document.querySelectorAll('div.display_question').forEach(function(el, index) {
let correct_ans = el.querySelector('input:checked').parentElement.parentElement.children[1].innerText;
answers[index] = correct_ans;
})
console.log(answers)
@AgeOfMarcus
AgeOfMarcus / marcusj-tech.ipynb
Created August 24, 2020 13:31
marcusj.tech.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AgeOfMarcus
AgeOfMarcus / dice-roll-plot.ipynb
Created August 19, 2020 13:59
dice-roll-plot.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AgeOfMarcus
AgeOfMarcus / blog.ipynb
Last active August 17, 2020 17:33
blog.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AgeOfMarcus
AgeOfMarcus / testcode.py
Created August 14, 2019 20:23
test code
import uuid
uid = input('Enter uuid: ')
uid = uid if not uid == '' else str(uuid.uuid1())
print("Using UUID: %s, Variable Type: %s" % (uid, repr(type(uid))))
x = uuid.UUID(uid)
print('version',x.version)
print('time',x.time)

Keybase proof

I hereby claim:

To claim this, I am signing this object: