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
/// This class is an implementation of a [FlDotPainter] that draws | |
/// a line segment with a value label above it. | |
class FlDotLineSegmentPainter extends FlDotPainter { | |
/// Constructs a [FlDotLineSegmentPainter]. | |
FlDotLineSegmentPainter({ | |
required this.width, | |
required this.height, | |
required this.value, | |
required this.textColor, | |
this.color = Colors.blue, |
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('@google-cloud/functions-framework'); | |
const firestore = require('@google-cloud/firestore'); | |
const client = new firestore.v1.FirestoreAdminClient(); | |
const bucket = 'gs://[bucket-name]' | |
// Register a CloudEvent callback with the Functions Framework that will | |
// be executed when the Pub/Sub trigger topic receives a message. | |
functions.cloudEvent('firestore-backup', cloudEvent => { | |
const databaseName = client.databasePath( | |
"[project-id]", | |
'(default)' |
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 com.google.api.core.ApiFuture; | |
import com.google.auth.oauth2.GoogleCredentials; | |
import com.google.cloud.firestore.CollectionReference; | |
import com.google.cloud.firestore.Firestore; | |
import com.google.cloud.firestore.QueryDocumentSnapshot; | |
import com.google.cloud.firestore.QuerySnapshot; | |
import com.google.firebase.FirebaseApp; | |
import com.google.firebase.FirebaseOptions; | |
import com.google.firebase.cloud.FirestoreClient; |
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
{ | |
"results": { | |
"ID.AM-PHYSICAL-COVERAGE": { | |
"score": 0 | |
} | |
}, | |
"scores": { | |
"geWfuH1htzZnffWn3Hpv": { | |
"A.ID": { | |
"score": 74, |
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
{ | |
"scores": { | |
"geWfuH1htzZnffWn3Hpv": { | |
"A.ID": { | |
"score": 80, | |
"target": 69, | |
"weight": 97000, | |
"weight-max": 117000, | |
"weight-min": 24000, | |
"weight-sum": 340000 |
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
{ | |
"2CII1MrN7b62qmkhhM6w": { | |
"assessment-bu": true, | |
"assessment-taker": false, | |
"name": "Target Testing Division 1", | |
"period-time-frame": "monthly", | |
"periods": [ | |
"202201" | |
], | |
"targets": true |
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
{ | |
"scores": { | |
"geWfuH1htzZnffWn3Hpv": { | |
"A.ID": { | |
"score": 77, | |
"target": 66, | |
"weight": 95000, | |
"weight-max": 117000, | |
"weight-min": 24000, | |
"weight-sum": 338000 |
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
{ | |
"results": {}, | |
"scores": { | |
"geWfuH1htzZnffWn3Hpv": { | |
"A.ID": { | |
"score": 77, | |
"target": 66, | |
"weight": 95000, | |
"weight-max": 117000, | |
"weight-min": 24000, |
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
package tech.jaredhasson; | |
import static org.junit.jupiter.api.Assertions.assertAll; | |
import static org.junit.jupiter.api.Assertions.assertEquals; | |
import static org.junit.jupiter.api.Assertions.assertTrue; | |
import static org.junit.jupiter.api.Assertions.assertNull; | |
import static org.junit.jupiter.api.Assertions.assertNotNull; | |
import static org.junit.jupiter.api.Assertions.assertThrows; | |
import static org.junit.jupiter.api.Assumptions.assumeTrue; | |
import static org.junit.jupiter.api.Assumptions.assumingThat; |