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
import { useQuery } from "@tanstack/react-query"; | |
export const GeoLocationErrorCode = { | |
NOT_SUPPORTED: "NOT_SUPPORTED", | |
PERMISSION_DENIED: "PERMISSION_DENIED", | |
POSITION_UNAVAILABLE: "POSITION_UNAVAILABLE", | |
TIMEOUT: "TIMEOUT", | |
UNKNOWN: "UNKNOWN", | |
} as const; |
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
/** | |
* Ensures that a promise resolves or rejects after at least a specified delay. | |
* | |
* @param promiseOrFn - A promise or a function that returns a promise or value. | |
* @param delay - Minimum time (in ms) to wait before resolving or rejecting (default: 800ms). | |
* @param options - Configuration object: | |
* - delayRejection (default: false): If true, ensures that rejections also respect the minimum delay. | |
* @returns The resolved value of the provided promise. | |
* @throws If the provided promise rejects or if `promiseOrFn` is a function that throws. | |
*/ |
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
#!/bin/bash | |
DATETIME=$(date '+%Y%m%d%H%M%S') | |
echo "This script will rename the Outlooks database to force a recreation" | |
read -p "Press enter to continue or close this window to abort." | |
# Force Outlook Profile rebuild (can take up to an hour) | |
OUTLOOK_PROFILES_DIR="$HOME/Library/Group Containers/UBF8T346G9.Office/Outlook/Outlook 15 Profiles" |