This file contains hidden or 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
// START SNIPPET: control-gpio-snippet | |
/* | |
* #%L | |
* ********************************************************************** | |
* ORGANIZATION : Pi4J | |
* PROJECT : Pi4J :: Java Examples | |
* FILENAME : ControlGpioExample.java | |
* | |
* This file is part of the Pi4J project. More information about |
This file contains hidden or 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
$a=Invoke-WebRequest http://service.joerg-tuttas.de:8081/Raspi/SensorServlet?out=json | ConvertFrom-Json | |
$s=Invoke-WebRequest http://service.joerg-tuttas.de:8081/Raspi/SensorServlet?out=csv | ConvertFrom-Csv -Delimiter ";" |
This file contains hidden or 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
// Auszug aus der Klasse OBJTraining | |
System.out.println("Ich besitze insgesammt " | |
+ Fahrzeugmarke.getNumberOfProducts() + " Produkte"); |
This file contains hidden or 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 dq.fiae12e; | |
public class ObjTraining { | |
private Produkt fuhrpark[] = new Produkt[10]; | |
public ObjTraining() { | |
Fahrrad f1 = new Fahrrad(12, 0); | |
f1.setHersteller("Gudereit"); | |
f1.setPreis(600); |
This file contains hidden or 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 dq.fiae12e; | |
public class Dachgepaecktraeger { | |
private Fahrrad f1,f2; | |
private final double gewicht=15.0; | |
public void applyFahrrad1(Fahrrad f1) { | |
this.f1 = f1; | |
} |
This file contains hidden or 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
<# | |
.Synopsis | |
Anlegen von AD Benutzern und Gruppen | |
.DESCRIPTION | |
Dieses Script legt Gruppen an und weist diesen dann Gruppen zu, als Datenquelle dient eine CSV Datei mit folgenden Einträgen | |
Fistname,LastName, group | |
.EXAMPLE | |
Add-ADUsers -tablename users.csv | |
.EXAMPLE | |
Add-ADUsers -tablename users.csv -computername 192.168.12.132 |
This file contains hidden or 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
public class Fahrzeug { | |
private double gewicht; | |
private long laufleistung; | |
public Fahrzeug (double gewicht) { | |
this.gewicht=gewicht; | |
} | |
public Fahrzeug (double gewicht, long laufleistung) { | |
this.gewicht=gewicht; |
This file contains hidden or 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
public class Fahrzeug { | |
private double gewicht; | |
private long laufleistung; | |
public Fahrzeug (double gewicht) { | |
this.gewicht=gewicht; | |
} | |
public Fahrzeug (double gewicht, long laufleistung) { | |
this.gewicht=gewicht; |
This file contains hidden or 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
public class Fahrzeug { | |
private double gewicht; | |
private long laufleistung; | |
public Fahrzeug (double gewicht) { | |
this.gewicht=gewicht; | |
} | |
public Fahrzeug (double gewicht, long laufleistung) { | |
this.gewicht=gewicht; |
This file contains hidden or 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
public class ObjTraining { | |
public ObjTraining() { | |
Fahrzeug fa1 = new Fahrzeug(); | |
Fahrzeug fa2 = new Fahrzeug(); | |
fa1.setGewicht(15.0); | |
fa2.setGewicht(20.0); | |
fa1.drive(300); | |
fa2.drive(2, 30); | |
fa1.drive(1,55); |