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
// ==UserScript== | |
// @name Chrome Comic Sans | |
// @namespace http://your.namespace/ | |
// @version 0.1 | |
// @description Comic Sans | |
// @match *://*/* | |
// @grant GM_addStyle | |
// @run-at document-start | |
// ==/UserScript== |
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
( ()=> { | |
const listElement = document.getElementById('BccAddresses$control'); | |
const listItems = listElement.querySelectorAll('.d2l-multiselect-choice span'); | |
const emailArray = []; | |
listItems.forEach((item) => { | |
const text = item.innerText; | |
const match = text.match(/"(.+)" <(.+)>/); | |
if (match) { | |
emailArray.push(`"${match[1]}" <${match[2]}>`); | |
} |
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
#!/bin/bash | |
# Check if the input playlist ID and API key are provided | |
if [ -z "$1" ] || [ -z "$2" ]; then | |
echo "Usage: $0 <playlist_id> <api_key>" | |
exit 1 | |
fi | |
playlist_id="$1" | |
api_key="$2" |
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
// ==UserScript== | |
// @name Twitch Black Square Overlay - Chess24 | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Overlay a black square on Twitch video streams | |
// @author You | |
// @match *://*.twitch.tv/chess24* | |
// @grant none | |
// ==/UserScript== |
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
( async ()=> { | |
let stream = await navigator.mediaDevices.getDisplayMedia( { video: true } ); | |
console.log( stream ); | |
let video = document.createElement('video'); | |
video.srcObject = stream; | |
video.play(); | |
let canvas = document.createElement('canvas'); | |
let ctx = canvas.getContext('2d'); |
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
#!/bin/bash | |
# twitchIINABlackBox playirresponsibly bottom-left 600 400 0 20 | |
# twitchIINABlackBox chess24 bottom-left 800 110 580 0 | |
if [[ "$1" == *"twitch.tv"* ]]; then | |
url="$1" | |
else | |
url="https://twitch.tv/$1" | |
fi |
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 | |
import requests | |
import json | |
def write_json( file_path , python_object ): | |
with open( file_path , 'w', encoding='utf-8' ) as f: | |
json.dump( python_object , f , ensure_ascii=False , indent=4 ) | |
def read_json( file_path ): | |
with open( file_path ) as f: |
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
( ()=> { | |
function get_chunk( chunk_id ) { | |
for ( let chunk_key in window.webpackChunk ) { | |
if ( window.webpackChunk[ chunk_key ][ 1 ].hasOwnProperty( chunk_id ) ) { | |
return window.webpackChunk[ chunk_key ][ 1 ][ chunk_id ]; | |
} | |
} | |
} | |
let chunk = get_chunk( 640151 ); | |
console.log( chunk ); |
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 | |
import requests | |
import json | |
import time | |
API_KEY = "asdf" | |
def miles_to_meters( miles ): | |
return ( miles * 1609.34 ) |
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 | |
import cv2 | |
import imagehash | |
import sys | |
from PIL import Image | |
import numpy as np | |
from pathlib import Path | |
from natsort import humansorted | |
# pip install opencv-python ImageHash pillow natsort |