This file contains hidden or 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 | |
| set -euo pipefail | |
| # NOTE(jpr): this is adapted from the following comments | |
| # https://github.com/dotnet/xamarin/issues/26#issuecomment-757981580 | |
| # https://github.com/dotnet/maui/discussions/2364#discussioncomment-1286275 | |
| readonly _mode="${1:-}" | |
| readonly _provided_udid="${2:-}" |
This file contains hidden or 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
| function delay(delayInms) { | |
| return new Promise(resolve => { | |
| setTimeout(() => { | |
| resolve(); | |
| }, delayInms); | |
| }); | |
| } | |
| function save(filename, data) { | |
| const blob = new Blob([data], {type: 'text/csv'}); |
This file contains hidden or 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 nix-shell | |
| #!nix-shell -i bash -p bash | |
| set -euo pipefail | |
| readonly _mode="${1:-}" | |
| case "$_mode" in | |
| 'pre' | 'post' | 'compare') | |
| readonly mode="${_mode}" | |
| ;; |
This file contains hidden or 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
| git branch --merged | Select-String -Pattern 'feature' | %{ git branch -d $_.Line.Trim() } |
This file contains hidden or 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
| # NOTE(jpr): adapted from https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference?view=vs-2019 | |
| root = true | |
| #### Core EditorConfig Options #### | |
| [*] | |
| indent_size = 4 | |
| indent_style = space | |
| trim_trailing_whitespace = true |
This file contains hidden or 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
| <?xml version="1.0" encoding="utf-8"?> | |
| <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
| <CodeSnippet Format="1.0.0"> | |
| <Header> | |
| <shortcut>bp</shortcut> | |
| <Title>Bindable Property</Title> | |
| <Author>Jimmy Reichley</Author> | |
| <Description>Inserts boilerplate for BindableProperty property</Description> | |
| <SnippetTypes> | |
| <SnippetType>Expansion</SnippetType> |
This file contains hidden or 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
| await (async function wrapper() { | |
| const accountDropdownSelector = 'mds-select mds-select-option'; | |
| const addDealSelector = '.sixersoffers__container .iconAddToCard'; | |
| const closeFlyoutSelector = 'flyoutClose'; | |
| const offerInfoTitleSelector = '.offerdetails__offer-info .offerdetails__info-one'; | |
| const offerInfoAmountSelector = '.offerdetails__offer-info .offered-amount-info'; | |
| const defaultDelayMs = 1000; | |
| const defaultMaxWaitMs = 1000; |
This file contains hidden or 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
| docker run -it --rm -v $(PWD):/app golang:alpine /bin/sh -c "cd /app; CGO_ENABLED=0 go test ./..." |
This file contains hidden or 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
| const chromium = require('chrome-aws-lambda'); | |
| const chalk = require('chalk'); | |
| const USERNAME = process.env.USERNAME; | |
| const PASSWORD = process.env.PASSWORD; | |
| const DEFAULT_TIMEOUT = 5000; | |
| const hl_info = chalk.bold.white; | |
| const info = chalk.gray; | |
| const positive = chalk.green; |
This file contains hidden or 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 | |
| readonly target_dir="${1:-}" | |
| if [ -z "${target_dir}" ] || ! [ -d "${target_dir}" ]; then | |
| echo "ERROR: doesnt exist or isnt a directory [${target_dir}]" | |
| exit 1 | |
| fi | |
| readonly RED=$( tput setaf 1 ) |