This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Output color | |
export CLICOLOR=1 | |
export LSCOLORS=dxfxcxdxbxegedabagacad | |
# Prompt Color | |
PS1='\[\e[0;32m\]\u\[\e[m\] \[\e[1;34m\]\w\[\e[m\] \[\e[1;32m\]\$\[\e[m\] \[\e[1;37m\]' | |
alias atom="open -a atom.app" | |
alias grm='git checkout master && git pull origin master && git checkout - && git rebase master' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DynamicSpacerHeightLayoutManager<ID: Equatable & Hashable>: ObservableObject { | |
struct Element { | |
let offset: CGFloat | |
let height: CGFloat | |
} | |
@Published private var orderedByOffset = OrderedDictionary<ID, Element>() | |
// insert: O(n) <- can be optimized further | |
// append: O(1) | |
// update offset: O(n) <- can be optimized furhter |
OlderNewer