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 | |
echo -e "Hi $(whoami) 👋, this script allows you to move an existing git tag to the latest commit on your current branch and then pushes it to the remote. Are you sure you want to proceed? [y/n]" | |
read proceedWithMove | |
if [ $proceedWithMove == y ] || [ $proceedWithMove == Y ] | |
then | |
echo -e "\n\nWhat directory is your git branch in? This script will cd in for you and use that as the working directory. This should be relative to the root folder of your machine. For example, if your repository is at ~/Users/Brandon/iOS then you should enter /Users/Brandon/iOS. If you're currently in the right folder, leave this blank." | |
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 GooglePlaces | |
func getAddresses(withQuery query: String) async -> [GMSPlace]? { | |
let client = GMSPlacesClient.shared() | |
let token = GMSAutocompleteSessionToken.init() | |
let filter = GMSAutocompleteFilter() | |
let predictions: [GMSAutocompletePrediction]? = await withCheckedContinuation { continuation in | |
client.findAutocompletePredictions( | |
fromQuery: query, filter: filter, sessionToken: token, | |
callback: { (results, error) in |