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 { ChevronDownIcon, ChevronRightIcon } from "@chakra-ui/icons" | |
| import { Box, chakra, Icon, useDisclosure } from "@chakra-ui/react" | |
| import { useMemo } from "react" | |
| export const json = (obj: any) => | |
| obj === undefined ? "undefined" : JSON.stringify(obj, null, 2) | |
| export const closeBrackets = (str: string) => | |
| str.replace( | |
| /[\(\[\{]+$/, |
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 vectorizer.ai download patcher | |
| // @match https://vectorizer.ai/* | |
| // @version 1.0 | |
| // @description enables free downloads on vectorizer.ai, based on https://github.com/sanz-s/Vectorizer.ai-Unofficial-Downloader-2025/ | |
| // ==/UserScript== | |
| const main = () => { | |
| const SVG_NS = 'http://www.w3.org/2000/svg' | |
| const SVG_XML_DECLARATION = '<?xml version="1.0" encoding="UTF-8"?>\n' |
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
| export type CompareResult<T> = { | |
| common: T[] | |
| added: T[] | |
| removed: T[] | |
| } | |
| export const compareSortedArrays = <T,>(oldArray: T[], newArray: T[], getKey?: (item: T) => any): CompareResult<T> => { | |
| const common: T[] = [] | |
| const added: T[] = [] | |
| const removed: T[] = [] |
OlderNewer