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 AMQ QoL scripts | |
| // @match https://animemusicquiz.com/* | |
| // @grant none | |
| // @run-at document-idle | |
| // @version 1.0 | |
| // @author ruby0b | |
| // ==/UserScript== | |
| // todo shortcut for skip | |
| 'use strict'; |
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
| from queue import Queue | |
| from threading import Thread | |
| from typing import Callable, Iterable | |
| def job_worker(jobs: Queue, results: list): | |
| while not jobs.empty(): | |
| job = jobs.get() | |
| results.append(job()) | |
| jobs.task_done() |
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
| -- awesomewm fancy_taglist: a taglist that contains a tasklist for each tag. | |
| -- Usage (add s.mytaglist to the wibar): | |
| -- awful.screen.connect_for_each_screen(function(s) | |
| -- ... | |
| -- local fancy_taglist = require("fancy_taglist") | |
| -- s.mytaglist = fancy_taglist.new({ | |
| -- screen = s, | |
| -- taglist = { buttons = mytagbuttons }, | |
| -- tasklist = { buttons = mytasklistbuttons } | |
| -- }) |