Developers/projects that have proven, by past actions in their repositories, to be untrustworthy
| /** | |
| * Quite the hack-ish mixin, allows to have reactive computed properties that | |
| * depend on data from `$refs` despite not being reactive itself | |
| */ | |
| export const reactiveRefsHackMixin = { | |
| data() { | |
| return { | |
| /** | |
| * Flag used to trigger computation of reactive data (do not edit manually) | |
| * @private |
Copyright <YEAR> <COPYRIGHT HOLDER>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. Copies or substantial portions of the Software cannot be used with malevolence, with the intent to cause harm, or for any other nefarious purposes (targetted or otherwise).
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOL
| export type MethodsOf<Obj> = { | |
| [Key in keyof Obj]: Obj[Key] extends (...args: unknown[]) => unknown ? Key : never; | |
| }[keyof Obj]; |
| export interface Semigroup<T, Self> { | |
| concat(b: Semigroup<T, Self>): Semigroup<T, Self>; | |
| sconcat(b: Semigroup<T, Self>): Semigroup<T, Self>; | |
| stimes(n: number): Semigroup<T, Self>; | |
| } | |
| const decorateSemigroup = <T, Self>(sg: Partial<Semigroup<T, Self>>): Semigroup<T, Self> => { | |
| sg.stimes = function(this: Semigroup<T, Self>, n: number): Semigroup<T, Self> { | |
| let ret = this; |
| # Don't show directory listings for URLs which map to a directory. | |
| Options -Indexes | |
| # Set the default handler. | |
| DirectoryIndex index.html | |
| # Add correct encoding for SVGZ. | |
| AddType image/svg+xml svg svgz | |
| AddEncoding gzip svgz |
| export type ArrayPartitionResult<T> = [left: T[], right: T[]]; | |
| const partitionArr = function<T>(this: T[], predicate: (item: T, i: number, arr: T[]) => boolean): ArrayPartitionResult<T> { | |
| return this.reduce((partitions: ArrayPartitionResult<T>, item: T, i: number): ArrayPartitionResult<T> => { | |
| const partitionIndex = predicate(item, i, this) ? 0 : 1; | |
| partitions[partitionIndex].push(item); | |
| return partitions; | |
| }, [[], []] as ArrayPartitionResult<T>); | |
| }; |
| import { useState, useMemo, useCallback, Dispatch, SetStateAction } from "react"; | |
| type InitialState<S> = (() => S) | S; | |
| type Nullable<T> = T|null|undefined; | |
| type Lens<Store = unknown, Value = unknown> = (store: Nullable<Store>) => ({ | |
| get(): Nullable<Value>; | |
| set(newValue: Nullable<Value>): Nullable<Store>; |
| const DeepProxy = require("proxy-deep") | |
| const _ = new DeepProxy({}, { | |
| _pushOp(op) { | |
| }, | |
| get(target, path, receiver){ | |
| return this.nest(function() {}); | |
| }, | |
| apply(target, thisArg, [obj]){ |
| @use "sass:selector"; | |
| @mixin darkMode($applySelf: false) { | |
| $selector: &; | |
| @if ($applySelf) { | |
| @content; | |
| } | |
| @at-root { |