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
it('renders results', () => { | |
const { configuration } = install(); | |
const Results = configuration.Results!; | |
expect(toJson(shallow(<Results />), { | |
noKey: false, | |
map: (val) => { | |
// Filter out noisy rxjs subscription from the snapshot. | |
if (val.type === 'ResultsListScrollContainer') { | |
val.props.resultState.subscription = {}; | |
} |
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
#/usr/bin/env bash | |
git config --global init.templatedir '~/.git-templates' && \ | |
mkdir -p ~/.git-templates/hooks && \ | |
cd ~/.git-templates/hooks | |
cat >post-checkout <<'EOL' | |
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
check_run() { | |
echo "$changed_files" | grep -E --quiet "$1" && eval "$2" || true |
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
<html> | |
<body> | |
<div style="overflow: hidden; position: relative;"> | |
<div style="background: yellow; height: 100%; overflow-y: scroll;"> | |
<div style="height: 10000px; display: flex; justify-content: flex-end;"> | |
<div style="height: 100px; width: 100px; background: red; transform: translate3d(0, 0, 0);">foo</div> | |
</div> | |
</div> | |
</div> | |
</body> |
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
type MakeOptional<T, K extends keyof T> = | |
{[P in keyof Pick<T, K>]+?: T[P]} & | |
{[P in keyof Pick<T, Exclude<keyof T, K>>]: T[P]}; |
OlderNewer