Skip to content

Instantly share code, notes, and snippets.

View jtuttas's full-sized avatar

jtuttas jtuttas

  • http://www.mmbbs.de
View GitHub Profile
@jtuttas
jtuttas / Test.java
Created June 10, 2015 11:14
Pi4J Example
// 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
@jtuttas
jtuttas / raspi.ps1
Created March 2, 2015 10:09
Get Data from Raspi Webservice
$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 ";"
@jtuttas
jtuttas / ObjTrainig.java
Last active July 16, 2019 08:07
Aufgabe 6
// Auszug aus der Klasse OBJTraining
System.out.println("Ich besitze insgesammt "
+ Fahrzeugmarke.getNumberOfProducts() + " Produkte");
@jtuttas
jtuttas / ObjTraining.java
Created November 14, 2014 10:57
Aufgabe 7
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);
@jtuttas
jtuttas / Dachgepaecktraeger.java
Last active July 16, 2019 06:43
Aufgabe 5 (Dachgepäckträger)
package dq.fiae12e;
public class Dachgepaecktraeger {
private Fahrrad f1,f2;
private final double gewicht=15.0;
public void applyFahrrad1(Fahrrad f1) {
this.f1 = f1;
}
<#
.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
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;
@jtuttas
jtuttas / Fahrzeug.java
Last active July 16, 2019 06:37
Aufgabe 4
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;
@jtuttas
jtuttas / Fahrzeug.java
Created September 25, 2014 08:21
Aufgabe 3.1
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;
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);