Skip to content

Instantly share code, notes, and snippets.

View erkobridee's full-sized avatar

Erko Bridee erkobridee

View GitHub Profile

useful tools to generate fake or do mock data

Fake Image

@erkobridee
erkobridee / _functions-overloads.md
Last active March 16, 2022 14:30
simple example of how to define functions overloads on typescript

Good morning 🇺🇸 / Bom Dia 🇧🇷 / Buenos Dias 🇪🇸 / Bonjour 🇫🇷 / Buongiorno 🇮🇹 / Gudde Moien 🇱🇺 / Guten Morgen 🇩🇪 / Ohayōgozaimasu ( おはようございます ) 🇯🇵 / Zǎoshang hǎo ( 早上好 ) 🇨🇳

@erkobridee
erkobridee / charts.md
Last active March 14, 2022 09:43
chart libraries
@erkobridee
erkobridee / App.tsx
Last active March 10, 2022 09:16
my way of use the react context effectively
import * as React from 'react';
import MyContextProvider from 'context/MyContext';
import MyApplication from 'domain/Application';
export const App: React.FunctionComponent = () => <MyContextProvider><MyApplication/></MyContextProvider>;
export default App;
@erkobridee
erkobridee / git_cleanup_merged_branches.sh
Created February 3, 2022 14:00
besides the defined list on the regex remove all other branches which were merged
git branch --merged | egrep -v "(^\*|master|main|staging|develop)" | xargs git branch -d
/*
useful references
regex pattern
https://github.com/mongodb/js-bson/blob/v4.2.0/src/objectid.ts#L9
validation function
https://github.com/mongodb/js-bson/blob/v4.2.0/src/objectid.ts#L301
/^([a-zA-Z0-9]{24}|[a-zA-Z0-9]{12})$/