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 |