Skip to content

Instantly share code, notes, and snippets.

View peterhudec's full-sized avatar

Peter Hudec peterhudec

View GitHub Profile
@peterhudec
peterhudec / fx-asset-classes.ts
Created December 14, 2021 13:43
FX Asset Classes Typing
type Currency = 'USD' | 'EUR' | 'CZK'
type PreciousMetal = `X${ 'AG' | 'AU' | 'PD' | 'PT' }`
type Treasury = `T${`0${ 2 | 3 | 5 | 7 }` | `${ 1 | 2 | 3 }0`}`
type CurrencyCurrency = `${Currency}${Currency}`
type PreciousMetalCurrency = `${PreciousMetal}${Currency}`
type TreasuryCurrency = `${Treasury}${Currency}`
type InstrumentNames = CurrencyCurrency | PreciousMetalCurrency | TreasuryCurrency
@peterhudec
peterhudec / .gitconfig
Created December 10, 2021 14:37
.gitconfig
[user]
name = Peter Hudec
email = peterhudec@peterhudec.com
[alias]
co = checkout
ci = commit
st = status
br = branch
hist = log --pretty=format:'%h %C(yellow)%ad%Creset [%C(blue)%an%Creset] %C(red)%d%Creset %C(green)%s%Creset' --graph --date=short --color