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
| /** | |
| * @typedef {(EncodedValue|EncodedDate|EncodedArray|EncodedMap|EncodedSet|EncodedObject|EncodedReference)} EncodedObj | |
| */ | |
| /** | |
| * @typedef {{type: "string"|"number"|"boolean"|"undefined", val: string|number|boolean|undefined}} EncodedValue | |
| */ | |
| /** | |
| * @typedef {{type: "date", val: string, ref: number}} EncodedDate |
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 * as ffi from "ffi-napi" | |
| import * as ref from "ref-napi" | |
| export enum ClipboardFormat { | |
| TEXT = 1, | |
| BITMAP = 2, | |
| METAFILEPICT = 3, | |
| SYLK = 4, | |
| DIF = 5, | |
| TIFF = 6, |
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
| // Node.js worker threads and networking libraries | |
| import { Worker, isMainThread, parentPort, workerData } from "node:worker_threads"; | |
| import net from "net"; | |
| const _DEBUG = true; | |
| function log(...args: any) { | |
| if(_DEBUG) console.log.apply(this, args); | |
| } | |
| // Define the size of the shared buffer. 16MB |
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 Augmented HTML5 Video Player | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description Adds volume boost to 400% and player speed control to 4x and changes skip forward/backward duration to 2s | |
| // @author swadical | |
| // @match https://*/* | |
| // @include * | |
| // @grant none | |
| // @run-at document-end |
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 * as fs from "fs"; | |
| /** | |
| * Class representing evaluation metrics for a binary classifier system. | |
| * This class is designed to calculate and analyze the performance of a binary classifier | |
| * as its discrimination threshold is varied, including ROC curve analysis and Precision-Recall curve analysis. | |
| */ | |
| export class BinaryClassifierStatistics { | |
| /** Sorted array of unique thresholds from the scores in descending order */ | |
| thresholds: number[] = []; |
OlderNewer