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
| package dev.foxgirl.async | |
| import java.util.concurrent.CompletableFuture | |
| import kotlin.coroutines.* | |
| /** | |
| * Provides async/await functionality in Kotlin using coroutines without a | |
| * coroutine runtime, powered by the [Promise] class. | |
| * | |
| * @author Lua MacDougall <lua@foxgirl.dev> |
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 FoxBlock | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description Tumblr userscript to automatically mass block users. | |
| // @author lua@foxgirl.dev | |
| // @match https://*.tumblr.com/* | |
| // @grant unsafeWindow | |
| // ==/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
| // | |
| // Mastodownload v1.1 | |
| // Mirrors posts from federated users to your instance. | |
| // | |
| // Requires Node.js 18 or higher. | |
| // | |
| // Usage: | |
| // $ mkdir mastodownload && cd mastodownload | |
| // $ wget 'https://gist.githubusercontent.com/luavixen/347cfff0038b159da51496d73ad6a09d/raw/mastodownload.js' | |
| // $ npm install 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 Twitter Friend Counter | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.2 | |
| // @description Twitter userscript to display a "friends" (accounts that you follow that also follow a given account) count next to usernames. | |
| // @author lua@foxgirl.dev | |
| // @match https://twitter.com/* | |
| // @grant unsafeWindow | |
| // ==/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 paths = require('path'); | |
| const fs = require('fs').promises; | |
| async function time(path) | |
| { | |
| const { mtime, birthtime } = await fs.stat(path); | |
| if (mtime.getTime() > birthtime.getTime()) | |
| { | |
| return mtime; |
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
| fandom.com##.global-navigation | |
| fandom.com##.main-container:style(margin: 0 !important; width: 100% !important) | |
| fandom.com##.fandom-sticky-header:style(left: 0 !important) | |
| fandom.com##.top-ads-container | |
| fandom.com##.bottom-ads-container | |
| fandom.com##.page__right-rail | |
| fandom.com###mixed-content-footer | |
| fandom.com##.notifications-placeholder | |
| fandom.com###WikiaBar | |
| fandom.com##.wds-global-footer__bottom-bar |
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
| package java.util; | |
| import java.io.Serial; | |
| import java.io.Serializable; | |
| import java.util.*; | |
| public class Table<K, V> implements Map<K, V>, Serializable { | |
| @Serial | |
| private static final long serialVersionUID = -534207388696845484L; |
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
| ! 2021-12-22 https://wiki.archlinux.org | |
| wiki.archlinux.org##.mw-page-container:style(max-width: unset !important) | |
| wiki.archlinux.org##.mw-workspace-container:style(max-width: unset !important) | |
| wiki.archlinux.org##.mw-content-container:style(max-width: unset !important; margin-left: 11.5em !important) | |
| wiki.archlinux.org##.mw-article-toolbar-container:style(max-width: unset !important) | |
| wiki.archlinux.org###mw-navigation:style(margin-left: 11.5em !important) | |
| wiki.archlinux.org###mw-panel:style(transform: none !important; visibility: visible !important; opacity: 1 !important) | |
| wiki.archlinux.org##.archwiki-template-meta-related-articles-start:style(width: unset !important; max-width: 25% !important) |
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
| operator fun <T : (A0) -> R, R, A0> T.invoke(): (A0) -> R { | |
| return { a -> this(a) } | |
| } | |
| operator fun <T : (A0, A1) -> R, R, A0, A1> T.invoke(): (A0, A1) -> R { | |
| return { a, b -> this(a, b) } | |
| } | |
| operator fun <T : (A0, A1, A2) -> R, R, A0, A1, A2> T.invoke(): (A0, A1, A2) -> R { | |
| return { a, b, c -> this(a, b, c) } | |
| } | |
| operator fun <T : (A0, A1, A2, A3) -> R, R, A0, A1, A2, A3> T.invoke(): (A0, A1, A2, A3) -> R { |
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 target = '/core/os/x86_64/linux-firmware-20210818.c46b8c3-1-any.pkg.tar.zst'; | |
| const targetReplace = '/$repo/os/$arch'; | |
| const timeoutMs = 20_000; | |
| const mirrors = [ | |
| // Canada | |
| 'https://mirror.0xem.ma/arch/$repo/os/$arch', | |
| 'https://mirror.csclub.uwaterloo.ca/archlinux/$repo/os/$arch', | |
| 'https://mirror2.evolution-host.com/archlinux/$repo/os/$arch', |
NewerOlder