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
import argparse | |
from string import digits | |
from time import sleep | |
import pydirectinput | |
import win32api | |
import win32con | |
parser = argparse.ArgumentParser(description="Repeatedly press keyboard keys") | |
parser.add_argument("key", nargs="*", default=list(digits)) |
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
# powershell completion for pnpm -*- shell-script -*- | |
Register-ArgumentCompleter -CommandName 'pnpm' -ScriptBlock { | |
param( | |
$WordToComplete, | |
$CommandAst, | |
$CursorPosition | |
) | |
function __pnpm_debug { |
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 iLearn HTML Beautify | |
// @version 0.2.1 | |
// @description Make plain HTML pages on iLearn fancy | |
// @author jcwillox | |
// @license MIT | |
// @include https://ilearn.mq.edu.au/pluginfile.php/*.html | |
// @include https://ilearn.mq.edu.au/pluginfile.php/*.htm | |
// @run-at document-start | |
// @grant GM_addStyle |
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 logVersion(primary = "#039BE5", secondary = "white") { | |
let name = GM_info.script.name.toUpperCase(); | |
let version = GM_info.script.version; | |
console.info( | |
`%c ${name} %c ${version} `, | |
`color: ${secondary}; background: ${primary}; font-weight: 700;`, | |
`color: ${primary}; background: ${secondary}; font-weight: 700;` | |
); | |
} |