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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>FILEHEADER</key> | |
<string> | |
// ___FILENAME___ | |
// ___PROJECTNAME___ | |
// | |
// Copyright © 2024 RWH Technology, LLC. All rights reserved. |
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
# See detailed instructions here: | |
# https://robertharrison.ca/blog/voice-cloning-tortoise-tts-apple-silicon/ | |
# Import PyTorch and Tortoise. | |
import torch | |
import torchaudio | |
import torch.nn as nn | |
import torch.nn.functional as F | |
from tortoise.api import TextToSpeech | |
from tortoise.utils.audio import load_audio, load_voice, load_voices |
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
const functions = require("firebase-functions"); | |
const {BigQuery} = require('@google-cloud/bigquery'); | |
exports.getMostPolluted = functions.https.onCall((data, context) => { | |
const bigQuery = new BigQuery(); | |
const query = 'SELECT location, city, country, value, timestamp FROM `bigquery-public-data.openaq.global_air_quality` WHERE pollutant = "pm25" AND timestamp > "2020-01-01" ORDER BY value DESC LIMIT 10'; | |
return bigQuery.query(query) |
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
// UIView+RoundedCorners.swift | |
// | |
// Created by Robert Harrison on 7/22/19. | |
// Copyright © 2019 Robert Harrison. All rights reserved. | |
// | |
// Usage: | |
// view.roundCorners([.topLeft, .topRight], cornerRadius: 8.0) | |
import UIKit |