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
// ==UserScript== | |
// @name Music-only YouTube homepage | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Automatically switch to the "Music" feed filter on YouTube | |
// @author ElnuDev | |
// @match https://www.youtube.com/ | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com | |
// @grant none | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name Habitica Due Default | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Automatically switch to Due tab in Dailies section | |
// @author ElnuDev | |
// @match https://habitica.com/ | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=habitica.com | |
// @grant none | |
// ==/UserScript== |
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
/* ==UserStyle== | |
@name habitica.com | |
@namespace github.com/openstyles/stylus | |
@version 1.0.0 | |
@description Habitica Nord Theme | |
@author ElnuDev | |
==/UserStyle== */ | |
@-moz-document domain("habitica.com") { | |
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400;1,700&display=swap'); |
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
// ==UserScript== | |
// @name NextRequest Downloader | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
let downloadButton = document.createElement("button"); | |
downloadButton.innerHTML = "Download all"; | |
downloadButton.style.position = "absolute"; | |
downloadButton.style.top = "8px"; |
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 math import nan | |
def slope(x, y, equation): | |
try: | |
# Edit this to match the given dy/dx in the problem | |
return eval(equation) | |
except ZeroDivisionError: | |
# Return NaN (Not a Number) for division by zero | |
return nan |
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
file_path = input("File path: ") | |
f = open(file_path, 'r+') | |
original_text = f.read() | |
text = original_text | |
# Replace quotations | |
# https://stackoverflow.com/a/58567848 | |
quote_count = text.count('"') |
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
#!/bin/bash | |
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - | |
sudo apt install -y nodejs |