Skip to content

Instantly share code, notes, and snippets.

View toridoriv's full-sized avatar
🐱
Loving cats

Victoria Rodriguez toridoriv

🐱
Loving cats
View GitHub Profile
@toridoriv
toridoriv / gitmojis.json
Created March 14, 2024 18:27
My custom Gitmojis
{
"gitmojis": [
{
"emoji": "🎨",
"entity": "🎨",
"code": ":art:",
"description": "Improve structure / format of the code.",
"name": "art",
"semver": null
},
@toridoriv
toridoriv / github-emojis.json
Last active November 17, 2023 22:51
GitHub Emojis
[
{
"code": ":100:",
"name": "100",
"unicode": "1f4af"
},
{
"code": ":1234:",
"name": "1234",
"unicode": "1f522"
@toridoriv
toridoriv / deno-manage-mod.ts
Last active November 10, 2023 19:56
Just trying something
// deno-lint-ignore-file no-explicit-any ban-types
export interface DenoManageFlag {
name: string;
abbreviation: string;
type: KeyOf<TypeMap>;
description: string;
options?: FlagOptions;
}
export interface DenoManageCommand<F extends Flags | null = null> {
@toridoriv
toridoriv / composite.ts
Last active January 2, 2023 18:54
Strongly typed pipe function.
/**
* @module composite
* Made using a Deno v1.17.0 and Typescript v4.5.2
*/
/**
* Represents an array with a generic type. If type is not defined, fallbacks to unknown.
*/
export type Collection<T> = Array<T>;
@toridoriv
toridoriv / arity.ts
Last active December 12, 2021 18:08
Mostly strongly typed curry and uncurry functions.
/**
* @module arity
* Made using a Deno v1.16.14 and Typescript v4.4.2
*/
/**
* Describes literally any array, including empty arrays or arrays with items
*/
export type AnyArray = any[];