Skip to content

Instantly share code, notes, and snippets.

Avatar
:shipit:
Discovering

Amin aminkhoshzahmat

:shipit:
Discovering
View GitHub Profile
View typescript-builder-pattern.ts
// Builders
class SimpleBuilder {
constructor(private current = {}) {
}
prop(key: string, value: any) {
return new SimpleBuilder({ ...this.current, ...{ [key]: value } });
}
@aminkhoshzahmat
aminkhoshzahmat / config
Created Nov 8, 2021 — forked from pksunkara/config
Sample of git config file (Example .gitconfig) (Place them in $XDG_CONFIG_HOME/git)
View config
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
username = pksunkara
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
pager = delta
[sendemail]
smtpencryption = tls