Skip to content

Instantly share code, notes, and snippets.

View LeonardoZivieri's full-sized avatar

Leonardo Zivieri LeonardoZivieri

  • FunctionOne
  • Salto - SP - Brazil
View GitHub Profile
@LeonardoZivieri
LeonardoZivieri / getter-memo.ts
Last active September 26, 2023 14:15
Angular GetterMemo, to prevent recalculations based on a list of values
export default class GetterMemo<V, C extends any[] = any[]> {
constructor(
private _calculator: () => V,
private _valueSeparators: () => C
) {}
private _lastValue?: V;
private _lastUpdate?: C;
clear() {
@LeonardoZivieri
LeonardoZivieri / gitmoji-simple-commit-flow.json
Last active November 10, 2023 14:00
gitmoji-simple-commit-flow.json
{
"gitmojis": [
{
"emoji": "📦️",
"entity": "&#1F4E6;",
"code": ":package:",
"description": "Create a new build / version",
"name": "package",
"semver": "patch"
},