a
This commit is contained in:
1
WS23_24/.obsidian/app.json
vendored
Normal file
1
WS23_24/.obsidian/app.json
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
||||
3
WS23_24/.obsidian/appearance.json
vendored
Normal file
3
WS23_24/.obsidian/appearance.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"accentColor": ""
|
||||
}
|
||||
30
WS23_24/.obsidian/core-plugins-migration.json
vendored
Normal file
30
WS23_24/.obsidian/core-plugins-migration.json
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"file-explorer": true,
|
||||
"global-search": true,
|
||||
"switcher": true,
|
||||
"graph": true,
|
||||
"backlink": true,
|
||||
"canvas": true,
|
||||
"outgoing-link": true,
|
||||
"tag-pane": true,
|
||||
"properties": false,
|
||||
"page-preview": true,
|
||||
"daily-notes": true,
|
||||
"templates": true,
|
||||
"note-composer": true,
|
||||
"command-palette": true,
|
||||
"slash-command": false,
|
||||
"editor-status": true,
|
||||
"bookmarks": true,
|
||||
"markdown-importer": false,
|
||||
"zk-prefixer": false,
|
||||
"random-note": false,
|
||||
"outline": true,
|
||||
"word-count": true,
|
||||
"slides": false,
|
||||
"audio-recorder": false,
|
||||
"workspaces": false,
|
||||
"file-recovery": true,
|
||||
"publish": false,
|
||||
"sync": false
|
||||
}
|
||||
20
WS23_24/.obsidian/core-plugins.json
vendored
Normal file
20
WS23_24/.obsidian/core-plugins.json
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
[
|
||||
"file-explorer",
|
||||
"global-search",
|
||||
"switcher",
|
||||
"graph",
|
||||
"backlink",
|
||||
"canvas",
|
||||
"outgoing-link",
|
||||
"tag-pane",
|
||||
"page-preview",
|
||||
"daily-notes",
|
||||
"templates",
|
||||
"note-composer",
|
||||
"command-palette",
|
||||
"editor-status",
|
||||
"bookmarks",
|
||||
"outline",
|
||||
"word-count",
|
||||
"file-recovery"
|
||||
]
|
||||
1
WS23_24/.obsidian/hotkeys.json
vendored
Normal file
1
WS23_24/.obsidian/hotkeys.json
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
||||
154
WS23_24/.obsidian/workspace.json
vendored
Normal file
154
WS23_24/.obsidian/workspace.json
vendored
Normal file
@@ -0,0 +1,154 @@
|
||||
{
|
||||
"main": {
|
||||
"id": "ed2e27e421e03c94",
|
||||
"type": "split",
|
||||
"children": [
|
||||
{
|
||||
"id": "74a393a52c87e656",
|
||||
"type": "tabs",
|
||||
"children": [
|
||||
{
|
||||
"id": "3dfaf3e3b84e3331",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "SWT1/Untitled.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"direction": "vertical"
|
||||
},
|
||||
"left": {
|
||||
"id": "5dd62cf6a3bb0241",
|
||||
"type": "split",
|
||||
"children": [
|
||||
{
|
||||
"id": "2418cf4a0ea3a56f",
|
||||
"type": "tabs",
|
||||
"children": [
|
||||
{
|
||||
"id": "8ef88311d42aa661",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "file-explorer",
|
||||
"state": {
|
||||
"sortOrder": "alphabetical"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "883907cee438d8d7",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "search",
|
||||
"state": {
|
||||
"query": "",
|
||||
"matchingCase": false,
|
||||
"explainSearch": false,
|
||||
"collapseAll": false,
|
||||
"extraContext": false,
|
||||
"sortOrder": "alphabetical"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "a0493ad0c080ae5b",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "bookmarks",
|
||||
"state": {}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"direction": "horizontal",
|
||||
"width": 300
|
||||
},
|
||||
"right": {
|
||||
"id": "4fa949919eaf91f0",
|
||||
"type": "split",
|
||||
"children": [
|
||||
{
|
||||
"id": "99ce06c1cfe5a046",
|
||||
"type": "tabs",
|
||||
"children": [
|
||||
{
|
||||
"id": "864ba2773da49ad0",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "backlink",
|
||||
"state": {
|
||||
"file": "SWT1/Untitled.md",
|
||||
"collapseAll": false,
|
||||
"extraContext": false,
|
||||
"sortOrder": "alphabetical",
|
||||
"showSearch": false,
|
||||
"searchQuery": "",
|
||||
"backlinkCollapsed": false,
|
||||
"unlinkedCollapsed": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "666f63d58c775418",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "outgoing-link",
|
||||
"state": {
|
||||
"file": "SWT1/Untitled.md",
|
||||
"linksCollapsed": false,
|
||||
"unlinkedCollapsed": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "6550219ec6f1fd2c",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "tag",
|
||||
"state": {
|
||||
"sortOrder": "frequency",
|
||||
"useHierarchy": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "950f85daf108abdb",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "outline",
|
||||
"state": {
|
||||
"file": "SWT1/Untitled.md"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"direction": "horizontal",
|
||||
"width": 300,
|
||||
"collapsed": true
|
||||
},
|
||||
"left-ribbon": {
|
||||
"hiddenItems": {
|
||||
"switcher:Open quick switcher": false,
|
||||
"graph:Open graph view": false,
|
||||
"canvas:Create new canvas": false,
|
||||
"daily-notes:Open today's daily note": false,
|
||||
"templates:Insert template": false,
|
||||
"command-palette:Open command palette": false
|
||||
}
|
||||
},
|
||||
"active": "3dfaf3e3b84e3331",
|
||||
"lastOpenFiles": [
|
||||
"SWT1/Untitled.md",
|
||||
"SWT1"
|
||||
]
|
||||
}
|
||||
@@ -7,5 +7,9 @@
|
||||
</content>
|
||||
<orderEntry type="jdk" jdkName="openjdk-21" jdkType="JavaSDK" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" name="openjfx.javafx.base" level="project" />
|
||||
<orderEntry type="library" name="openjfx.javafx.graphics" level="project" />
|
||||
<orderEntry type="library" name="openjfx.javafx.controls" level="project" />
|
||||
<orderEntry type="library" name="scala-sdk-2.13.12" level="application" />
|
||||
</component>
|
||||
</module>
|
||||
@@ -1,5 +1,22 @@
|
||||
package P10
|
||||
|
||||
object FrenshDude {
|
||||
import scala.annotation.tailrec
|
||||
|
||||
object FrenchDude {
|
||||
def main(args: Array[String]): Unit = {
|
||||
|
||||
}
|
||||
def pascalTriangle(c: Int, r: Int): Int = {
|
||||
@tailrec
|
||||
def loop(c0: Int, r0: Int, pred: Array[Int], cur: Array[Int]): Int = {
|
||||
cur(c0) = (if (c0 > 0) pred(c0 - 1) else 0) + (if (c0 < r0) pred(c0) else 0)
|
||||
|
||||
if ((c0 == c) && (r0 == r)) cur(c0)
|
||||
else if (c0 < r0) loop(c0 + 1, r0, pred, cur)
|
||||
else loop(0, r0 + 1, cur, new Array(_length = r0 + 2))
|
||||
}
|
||||
|
||||
if ((c == 0) && (r == 0)) 1
|
||||
else loop(0, 1, Array(1), Array(0, 0))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package P10
|
||||
|
||||
|
||||
object test{
|
||||
object additionCurry{
|
||||
def main(args: Array[String]): Unit = {
|
||||
type DoubleFkt = (Double, Double) => Double
|
||||
def func(a: Double, b: Double):
|
||||
|
||||
@@ -1,5 +1,19 @@
|
||||
package P10
|
||||
|
||||
object calculate {
|
||||
def main(args: Array[String]): Unit = {
|
||||
type DoubleFkt = (Double, Double) => Double
|
||||
def calc(a:Double,b:Double,func:DoubleFkt):Double={
|
||||
func(a,b)
|
||||
}
|
||||
|
||||
val add =
|
||||
(x: Double, y: Double) => x+y
|
||||
|
||||
val subtract=
|
||||
(x: Double, y: Double) => x-y
|
||||
|
||||
println(calc(1,1,add))
|
||||
println(calc(1,1,subtract))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,31 @@
|
||||
//
|
||||
// Created by jordi on 1/8/24.
|
||||
//
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
// Definition der Date-Struktur
|
||||
struct Date {
|
||||
int day;
|
||||
int month;
|
||||
int year;
|
||||
};
|
||||
|
||||
// Funktion zur Ausgabe des Datums im Format dd.mm.yyyy
|
||||
void printDate(struct Date *date) {
|
||||
printf("%02d.%02d.%04d\n", date->day, date->month, date->year);
|
||||
}
|
||||
|
||||
int main() {
|
||||
// Erstellen eines Date-Objekts und Zuweisen von Werten
|
||||
struct Date myDate;
|
||||
myDate.day = 8;
|
||||
myDate.month = 1;
|
||||
myDate.year = 2024;
|
||||
|
||||
// Aufrufen der Funktion zum Ausgeben des Datums
|
||||
printf("Das Datum ist: ");
|
||||
printDate(&myDate);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
//
|
||||
// Created by jordi on 1/8/24.
|
||||
//
|
||||
|
||||
#include <stdio.h>
|
||||
int main()
|
||||
{
|
||||
printf("hallo");
|
||||
}
|
||||
@@ -1,2 +1,22 @@
|
||||
package P5;public class A2 {
|
||||
package P5;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
public class A2 {
|
||||
public static void main(String[] args) {
|
||||
for(int i:generate(10)){
|
||||
System.out.println(i);
|
||||
}
|
||||
}
|
||||
public static List<Integer> generate (int n){
|
||||
|
||||
List<Integer> result = Stream.iterate(new Integer[] {0,1}, s -> new Integer[]{s[1], s[0] + s[1]})
|
||||
.limit(n) // short-circuit
|
||||
.map(s -> s[0])
|
||||
.collect(Collectors.toList()
|
||||
);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,2 +1,17 @@
|
||||
package P5;public class A3 {
|
||||
package P5;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
public class A3 {
|
||||
static String lorem = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, seddiam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyamerat, sed diam voluptua. At vero eos et accusam et justo duo dolores et earebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsumdolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, seddiam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyamerat, sed diam voluptua. At vero eos et accusam et justo duo dolores et earebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsumdolor sit amet.";
|
||||
public static void main(String[] args) {
|
||||
Stream.of(lorem)
|
||||
.flatMap(line -> Arrays.stream(line.split("\\ |\\,|\\.")))
|
||||
.filter(s -> s.length()>6)
|
||||
.forEach(System.out::println);
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,2 +1,14 @@
|
||||
package P5;public class Praktikum {
|
||||
package P5;
|
||||
|
||||
import java.util.stream.IntStream;
|
||||
|
||||
public class Praktikum {
|
||||
public static void main(String[] args) {
|
||||
int sum = IntStream.range(1,11).reduce(0, (x, y) -> x+y);
|
||||
System.out.println(sum);
|
||||
|
||||
|
||||
int prod = IntStream.range(1,11).reduce(1, (x, y) -> x*y);
|
||||
System.out.println(prod);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,2 +1,7 @@
|
||||
package P6;public class A2 {
|
||||
package P6;
|
||||
|
||||
public class A2 {
|
||||
public static void main(String[] args) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,2 +1,33 @@
|
||||
package P6;public class Praktikum {
|
||||
package P6;
|
||||
|
||||
import java.io.BufferedWriter;
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
import java.nio.file.*;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
public class Praktikum {
|
||||
public static void main(String[] args) {
|
||||
String home = System.getProperty("user.home");
|
||||
String login = System.getProperty("user.name");
|
||||
var time = java.time.LocalDateTime.now();
|
||||
|
||||
Path p = Paths.get(home, "java-text.tmp");
|
||||
try {
|
||||
if (Files.exists(p))
|
||||
Files.delete(p);
|
||||
}catch (IOException ioe){
|
||||
|
||||
}
|
||||
try (var bw = Files.newBufferedWriter(
|
||||
p, StandardOpenOption.APPEND,
|
||||
StandardOpenOption.CREATE)){
|
||||
bw.write(LocalDateTime.now()+"\n");
|
||||
bw.write("Hello "+login+"\n");
|
||||
bw.write("Ende\n");
|
||||
} catch (IOException ex) {
|
||||
ex.printStackTrace();}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,2 +1,10 @@
|
||||
package P7;public class A1 {
|
||||
package P7;
|
||||
|
||||
public class A1 {
|
||||
public static void main(String[] args) {
|
||||
Thread su = new Sanduhr();
|
||||
su.start();
|
||||
Thread spam = new Spammer();
|
||||
spam.start();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,2 +1,21 @@
|
||||
package P7;public class Gabel {
|
||||
package P7;
|
||||
|
||||
public class Gabel {
|
||||
public boolean takable =true;
|
||||
int id;
|
||||
public Gabel(int pID){
|
||||
id=pID;
|
||||
}
|
||||
public synchronized boolean take(String name) {
|
||||
if(!takable)
|
||||
return false;
|
||||
System.out.println(name+" hat Gabel "+id+" genommen");
|
||||
takable=false;
|
||||
return true;
|
||||
}
|
||||
public synchronized void place(String name){
|
||||
System.out.println(name+" hat Gabel "+id+" zuruckgelegt");
|
||||
takable = true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,2 +1,33 @@
|
||||
package P7;public class Philosoph {
|
||||
package P7;
|
||||
|
||||
public class Philosoph extends Thread {
|
||||
String name;
|
||||
Gabel left,right;
|
||||
public Philosoph(String pname,Gabel pleft, Gabel pright){
|
||||
name=pname;
|
||||
left=pleft;
|
||||
right=pright;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
while (true){
|
||||
try {
|
||||
Thread.sleep(500);
|
||||
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
}
|
||||
if(right.take(name)){
|
||||
if(left.take(name)){
|
||||
System.out.println(name+" " +"Yeeting");
|
||||
}else{
|
||||
right.place(name);
|
||||
System.out.println("kein links");
|
||||
}
|
||||
}else {
|
||||
System.out.println("kein rechts");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,2 +1,30 @@
|
||||
package P7;public class Philosophen {
|
||||
package P7;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class Philosophen {
|
||||
public static void main(String[] args) {
|
||||
//int n =Integer.parseInt(args[0]);
|
||||
int n = 5;
|
||||
var pList = new ArrayList<Thread>();
|
||||
var gList= new ArrayList<Gabel>();
|
||||
for(int it =0;it<n;it++){
|
||||
Gabel g=new Gabel(it);
|
||||
gList.add(g);
|
||||
}
|
||||
for(int i=0;i<n;i++){
|
||||
Gabel left = gList.get(i);
|
||||
Gabel right;
|
||||
if (i==0){
|
||||
right = gList.get(gList.size()-1);
|
||||
}else {
|
||||
right = gList.get(i-1);
|
||||
}
|
||||
Thread t = new Philosoph("Philosoph "+i,left, right);
|
||||
pList.add(t);
|
||||
t.start();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,2 +1,17 @@
|
||||
package P7;public class Sanduhr {
|
||||
}
|
||||
package P7;
|
||||
|
||||
public class Sanduhr extends Thread{
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
dauertLange();
|
||||
}
|
||||
|
||||
public void dauertLange()
|
||||
{
|
||||
try{
|
||||
Thread.sleep((long)(Math.random()*5000+5000));
|
||||
}catch (InterruptedException ie){}
|
||||
System.out.println("nope");
|
||||
}
|
||||
}
|
||||
@@ -1,2 +1,16 @@
|
||||
package P7;public class Spammer {
|
||||
package P7;
|
||||
|
||||
public class Spammer extends Thread{
|
||||
@Override
|
||||
public void run() {
|
||||
while(true) {
|
||||
try {
|
||||
Thread.sleep(500);
|
||||
System.out.println(".");
|
||||
|
||||
} catch (InterruptedException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,2 +1,25 @@
|
||||
package P8;public class FontChangeApp {
|
||||
package P8;
|
||||
|
||||
import javafx.application.Application;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.scene.control.*;
|
||||
import javafx.scene.layout.*;
|
||||
import javafx.scene.text.Font;
|
||||
import javafx.scene.text.FontPosture;
|
||||
import javafx.stage.Stage;
|
||||
import javafx.geometry.*;
|
||||
|
||||
|
||||
|
||||
public class FontChangeApp extends Application {
|
||||
|
||||
private TextArea textArea;
|
||||
|
||||
public static void main(String[] args) {
|
||||
launch(args);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void start(Stage primaryStage) {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,2 +1,7 @@
|
||||
package P8;public class Launcher {
|
||||
package P8;
|
||||
|
||||
public class Launcher {
|
||||
public static void main(String[] args) {
|
||||
FontChangeApp.main(args);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
package P9
|
||||
|
||||
object Numbers {
|
||||
def main(args: Array[String]) {
|
||||
println()
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
object Palindrom {
|
||||
def main(args: Array[String]) {
|
||||
println(startCheck("ABCCBA"))
|
||||
}
|
||||
|
||||
def startCheck(word: String): Boolean = {
|
||||
check(0, word)
|
||||
}
|
||||
def check(i: Int, word: String): Boolean = {
|
||||
if((word.length/2)<=i) true else if (word.charAt(i)==word.charAt(word.length-i-1)&&check(i+1,word)) true else false
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,9 @@
|
||||
package P9
|
||||
|
||||
class test {
|
||||
|
||||
object HalloWelt {
|
||||
def main(args: Array[String]) {
|
||||
println("Hallo, Welt!")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
object HalloWelt {
|
||||
def main(args: Array[String]) {
|
||||
println("Hallo, Welt!")
|
||||
}
|
||||
}
|
||||
14
WS23_24/SWT1/Untitled.md
Normal file
14
WS23_24/SWT1/Untitled.md
Normal file
@@ -0,0 +1,14 @@
|
||||
- Finalisieren Sie die Personas und Empathy Maps
|
||||
-
|
||||
- Bearbeiten Sie die „Problemdefinition“ als Hausaufgabe
|
||||
und nutzen dabei die „Point of View“- und „How might
|
||||
wie?“- Methode.
|
||||
- Problem: sehr enge Planung des Personals durch unterschiedliche Abh"angigkeiten
|
||||
- Personal clou
|
||||
|
||||
- Machen Sie sich (nach unserem Termin am 23.10.23)
|
||||
Gedanken, welche Kreativmethoden (2 Stück) Sie zur
|
||||
Ideenfindung einsetzen wollen.
|
||||
-
|
||||
|
||||
|
||||
Reference in New Issue
Block a user