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
// sort ascending | |
Collections.sort(this.scores, (Score s1, Score s2) -> { | |
return Integer.compare(s1.getScore(), s2.getScore()); | |
}); | |
// reverse sort | |
Collections.sort(this.scores, (Score s1, Score s2) -> { | |
return Integer.compare(s2.getScore(), s1.getScore()); | |
}); |
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
/* Programm zum Auslesen der CO2-Konzentration aus 2 Sensoren MH-Z19 an einem Arduino Mega | |
* Die Sensoren befinden sich an den seriellen Schnittstellen 1 und 2. | |
* Die Werte werden dann an im Klartext an den Computer übergeben. | |
* Geschrieben von: Norbert Huber | |
* Datum: 08.04.2017 | |
*/ | |
/* | |
* Serial 1 pins: | |
* D13 - Rx |
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
<?php | |
$dayname = array("", "Ma", "Ti", "Ke", "To", "Pe", "La", "Su"); | |
?> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
</head> |
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
/* | |
* MHZ-19 wiring | |
* | |
* Connections: | |
* MH-Z19 MKR1000 | |
* 2(Rx)----D14(Tx) | |
* 3(Tx)----D13(Rx) | |
* 6(Vin)---5V | |
* 7(GND)---GND | |
*/ |