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
| /** | |
| * Copy of: | |
| * https://github.com/lukeed/clsx/blob/master/src/index.js | |
| */ | |
| export type ClassValue = | |
| | ClassArray | |
| | ClassDictionary | |
| | string | |
| | number |
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
| /** | |
| * Enumeration of data types. | |
| * @enum {string} | |
| */ | |
| enum DataType { | |
| OBJECT, | |
| ARRAY, | |
| STRING, | |
| OTHER, | |
| } |
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
| """ | |
| Quick script to offset subtitles in .srt files. Didn't | |
| Google first to realize that this exists: | |
| https://github.com/byroot/pysrt | |
| Oh well. | |
| """ | |
| import re |
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 convertStreamToBuffer = async ( | |
| stream: NodeJS.ReadableStream | |
| ): Promise<Buffer> => { | |
| return new Promise((resolve, reject) => { | |
| let buffers: Uint8Array[] = []; | |
| stream.on("data", (data) => { | |
| buffers.push(data); | |
| }); |
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
| {"lastUpload":"2021-10-14T19:48:42.588Z","extensionVersion":"v3.4.3"} |