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
| #!/bin/bash | |
| set -euo pipefail | |
| IFS=$'\n\t' | |
| PROJECT_ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd) | |
| SCHEME="${SCHEME:-iosApp}" | |
| PROJECT_PATH="${PROJECT_PATH:-$PROJECT_ROOT/iosApp/iosApp.xcodeproj}" | |
| DERIVED_DATA="${DERIVED_DATA:-$PROJECT_ROOT/build/derived}" | |
| CONFIGURATION="${CONFIGURATION:-Debug}" | |
| APP_NAME="${APP_NAME:-iosApp}" |
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
| /* | |
| * Copyright 2025 Kyriakos Georgiopoulos | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
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
| /* | |
| * Copyright 2025 Kyriakos Georgiopoulos | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
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
| /** | |
| * Checks if the current network is connected to the internet and validated. | |
| * Validation indicates the network is functional (e.g., it can be used for browsing). | |
| * | |
| * @return True if the network is connected, has internet capability, and is validated; false otherwise. | |
| */ | |
| private fun Context.isInternetFunctional(): Boolean { | |
| val connectivityManager = getSystemService(Context.CONNECTIVITY_SERVICE) as ConnectivityManager | |
| val network = connectivityManager.activeNetwork | |
| val networkCapabilities = connectivityManager.getNetworkCapabilities(network) |
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
| import Head from 'next/head'; | |
| import PropTypes from 'prop-types'; | |
| const MetaWrapper = (props) => { | |
| const { | |
| title, | |
| description, | |
| type, | |
| imageUrl, | |
| contentUrl, |
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
| import config | |
| from google.cloud import speech, texttospeech | |
| import gradio as gr | |
| import io | |
| import openai | |
| import os | |
| from playsound import playsound | |
| openai.api_key = config.OPENAI_API_KEY ## API Key from ChatGPT stored in a config.py file in same directory | |
| os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "./cloud_creds.json" ## Path to service account credentials JSON from Google Cloud Platform |
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
| # Hat tip to Kaushik Gopal for some of this | |
| # make zsh tab completion fix capitalization errors for directories and files | |
| # i don't know if this is required anymore | |
| # autoload -Uz compinit && compinit | |
| # 0 -- vanilla completion (abc => abc) | |
| # 1 -- smart case completion (abc => Abc) | |
| # 2 -- word flex completion (abc => A-big-Car) | |
| # 3 -- full flex completion (abc => ABraCadabra) |
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
| # Licensed to the Apache Software Foundation (ASF) under one | |
| # or more contributor license agreements. See the NOTICE file | |
| # distributed with this work for additional information | |
| # regarding copyright ownership. The ASF licenses this file | |
| # to you under the Apache License, Version 2.0 (the | |
| # "License"); you may not use this file except in compliance | |
| # with the License. You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # |
NewerOlder