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
// Three different ways to access a document | |
//using a DocumentSnapshot - does not retrieve the document | |
Stream<WorkoutSession?> getWorkoutStream(String workoutId) { | |
return FirebaseFirestore.instance | |
.collection('users') | |
.doc('testuserId') | |
.collection('workouts') | |
.doc(workoutId) | |
.snapshots() |
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 'package:flutter/material.dart'; | |
import '../MaterialColorGenerator.dart'; | |
import '../exercises/ExercisesListScreen.dart'; | |
import '../main.dart'; | |
void main() { | |
runApp(MyApp()); | |
} |
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 'package:flutter/material.dart'; | |
class ScreenSizeScreen extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
print("ZAXA >>>>> build on the ScreenSizeScreen trigggered"); | |
return Scaffold( | |
appBar: AppBar( | |
title: Text('Screen Size'), | |
), |
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
fun drawBoxesOnTheImage2(img: Mat) { | |
val gray = Mat() | |
val blur = Mat() | |
val thresh = Mat() | |
Imgproc.cvtColor(img, gray, Imgproc.COLOR_BGR2GRAY) | |
Imgproc.medianBlur(gray, blur, 11) | |
Imgproc.threshold(blur, thresh, 0.0, 255.0, Imgproc.THRESH_BINARY + Imgproc.THRESH_OTSU) | |
val opening = Mat() | |
val kernel = Imgproc.getStructuringElement(Imgproc.MORPH_ELLIPSE, Size(5.0,5.0)) |
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
// | |
// ViewController.swift | |
// 5gMeter | |
// | |
// Created by David Lopez Dayer on 5/17/20. | |
// Copyright © 2020 David Lopez Dayer. All rights reserved. | |
// | |
import UIKit | |
import CoreMotion |
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 com.dayerdl.firstround.database.daos; | |
import android.content.Context; | |
import android.database.Cursor; | |
import android.database.sqlite.SQLiteException; | |
import android.text.TextUtils; | |
import android.util.Log; | |
import com.dayerdl.firstround.model.Bar; | |
import com.dayerdl.firstround.model.BarRealm; | |
import com.parse.ParseFile; |
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 com.dayerdl.firstround.database.daos; | |
import android.content.Context; | |
import android.database.Cursor; | |
import android.database.sqlite.SQLiteException; | |
import android.text.TextUtils; | |
import android.util.Log; | |
import com.dayerdl.firstround.model.Bar; | |
import com.dayerdl.firstround.model.BarRealm; | |
import com.parse.ParseFile; |
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
{ | |
"id": 17799963, | |
"title": "Primeurs in Parijs", | |
"intro": "<p>De nieuwe Renault Espace, Skoda Fabia, Opel Corsa, Ford S-Max en Hyundai i20: ze staan allemaal op de Mondial de l'Automobile in Paris Expo. Deze Parijse autobeurs loopt tot en met 19 oktober.</p>", | |
"entitlements": [ | |
"subscribed" | |
], | |
"pubDate": 1413455996, | |
"modDate": 1413458385, | |
"imageUrl": "http://www.lc.nl/images/cci_images/article17799893.ece/BINARY/B82852402Z.1_20141015145038_000%2BGHLGQGPO.1.jpg", |