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 Nuke the circus | |
| // @namespace https://jens.omg.lol | |
| // @version 20250226 | |
| // @description Filter news based on a keyword, and replace it with a tranquil placeholder of your choosing | |
| // @author Jens Penny | |
| // @match *://*/* | |
| // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAMH0lEQVRoQ+1ZC1iNWRd+v++cSuqkEtFF1CBMM+4hk0sxJDTmL2YGY2pcmlwHaVyqYZBLroMhjRGSaybJNRpGoiIJPxVNxd+FqHO6nc7lX/sz+l1OmsQzzzy//Tzv83zn23uvvd6911p7re9w+Ic37h+uP94R+LtP8N0J/D+cgDGRNCBkvQ2yb9OEdEjhUMIXTHGe51NVKtWn9JjxJom8TQKB4LiAgeN90NjCElGrghRl0pLLaqXS/h9BgBeLk9vYO3SeHBou6HtmewgOLA1kj40JRW+KxFs7AY7jjpm0aDlgblQsr6Wjg93+cxC/b5dcrVZLSHn5KwiMoL7BhErCPsJvryL7OgRMSOCXhLaER4Q9hMsaFnEmEzph1Ky5St/ImMu5kcbTmBUE31cotIb6phmYNFUoFVUoffxIRL+nEDbUNKeuBHpyPB+jVqkMdSUGyopSGU/PTLY/4QcNi/Sldz50Go1o5yPpeTNBmKChfUDvUpy+msi5+S6ASqnELzN91CknY+S0hin1FWuaVBcC+qR8plEzs8Zfrw8RtejwAcpKihER6IfLMVFMNjv2Y6/Y3dq6PGlA6KIziTBqbiaMvZ1wHuvGebBHR8K5+hL4nATsmvJzBNr2+qhaVlVlJfz72yulDwsZC2a/r9sG0sTj |
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
| class_name Template | |
| var name: String | |
| var vectors: Array[float] | |
| func _init(n, v): | |
| name = n | |
| vectors = v | |
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
| private static final Logger LOGGER = LoggerFactory.getLogger("consistencyChecker"); | |
| public static <E> void checkCollectionSort(Collection<E> toCheck, Comparator<E> comparator){ | |
| for (E first : toCheck) { | |
| for (E second : toCheck) { | |
| final int firstCompare = comparator.compare(first, second); | |
| final int reverseCompare = comparator.compare(second, first); | |
| if (Integer.signum(firstCompare) != -Integer.signum(reverseCompare)) { | |
| LOGGER.error("Sign contract violation: {} - {}", first.toString(), second.toString()); |