From 6211acfb2494cf2d1985635c78f2ad659f6e25fc Mon Sep 17 00:00:00 2001
From: Hong-Phuc Bui <hong-phuc.bui@htwsaar.de>
Date: Fri, 16 Oct 2026 21:52:46 +0200
Subject: [PATCH] re-sorted
---
01-0-intro-url-path/index.html | 3
/dev/null | 117 ---------------------------------------
01-0-intro-url-path/common.css | 3 +
01-0-intro-url-path/.gitignore | 0
01-1-arithmetic/division.c | 13 ++++
01-0-intro-url-path/README.md | 11 +++
01-0-intro-url-path/tangente.js | 0
01-1-arithmetic/division.py | 4 +
8 files changed, 33 insertions(+), 118 deletions(-)
diff --git a/01-intro-url-path/.gitignore b/01-0-intro-url-path/.gitignore
similarity index 100%
rename from 01-intro-url-path/.gitignore
rename to 01-0-intro-url-path/.gitignore
diff --git a/01-0-intro-url-path/README.md b/01-0-intro-url-path/README.md
new file mode 100644
index 0000000..247f38d
--- /dev/null
+++ b/01-0-intro-url-path/README.md
@@ -0,0 +1,11 @@
+Lernziel:
+
+* HTTP-Server
+* Syntax von URLs (=Bestandteil eines URL)
+* Relative/absolute Pfade
+
+Task:
+
+* Identifizieren Sie alle URL in der Datei `index.html`
+* Identifizieren Sie die Bestandteile von einer URL.
+ Welcher Bestandteil einer URL haben wir in eine ULR in `index.html` verwendet?
\ No newline at end of file
diff --git a/01-0-intro-url-path/common.css b/01-0-intro-url-path/common.css
new file mode 100644
index 0000000..e20d6cc
--- /dev/null
+++ b/01-0-intro-url-path/common.css
@@ -0,0 +1,3 @@
+html {
+ font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
+}
\ No newline at end of file
diff --git a/01-intro-url-path/index.html b/01-0-intro-url-path/index.html
similarity index 86%
rename from 01-intro-url-path/index.html
rename to 01-0-intro-url-path/index.html
index 049caf9..e205c60 100644
--- a/01-intro-url-path/index.html
+++ b/01-0-intro-url-path/index.html
@@ -6,7 +6,8 @@
<script src="https://cdn.jsdelivr.net/npm/jsxgraph/distrib/jsxgraphcore.js"></script>
<link rel="stylesheet" type="text/css"
href="https://cdn.jsdelivr.net/npm/jsxgraph/distrib/jsxgraph.css">
-
+ <link rel="stylesheet" type="text/css"
+ href="./common.css"/>
</head>
<body>
<h1>Fluglinien mit Kurswinkel</h1>
diff --git a/01-intro-url-path/tangente.js b/01-0-intro-url-path/tangente.js
similarity index 100%
rename from 01-intro-url-path/tangente.js
rename to 01-0-intro-url-path/tangente.js
diff --git a/01-1-arithmetic/division.c b/01-1-arithmetic/division.c
new file mode 100644
index 0000000..f11064f
--- /dev/null
+++ b/01-1-arithmetic/division.c
@@ -0,0 +1,13 @@
+/*
+compile: $ gcc division.c -o division
+run : $ ./division
+*/
+
+#include <stdio.h>
+
+int main() {
+ int q = 11 / (-7);
+ int r = 11 % (-7);
+ printf("q = %d r = %d\n", q, r);
+ return 0;
+}
diff --git a/01-1-arithmetic/division.py b/01-1-arithmetic/division.py
new file mode 100644
index 0000000..a7270a4
--- /dev/null
+++ b/01-1-arithmetic/division.py
@@ -0,0 +1,4 @@
+q = 11 // (-7)
+r = 11 % (-7)
+print(f"q = {q} r = {r}")
+
diff --git a/01-intro-url-path/division.c b/01-intro-url-path/division.c
deleted file mode 100644
index 451130c..0000000
--- a/01-intro-url-path/division.c
+++ /dev/null
@@ -1,7 +0,0 @@
-#include <stdio.h>
-
-int main() {
- int x = 11 / (-7);
- printf("%d\n",x);
- return 0;
-}
diff --git a/01-intro-url-path/division.py b/01-intro-url-path/division.py
deleted file mode 100644
index e69de29..0000000
--- a/01-intro-url-path/division.py
+++ /dev/null
diff --git a/codeberg.page/kurswinkel/deploy.sh b/codeberg.page/kurswinkel/deploy.sh
deleted file mode 100755
index 1eabed6..0000000
--- a/codeberg.page/kurswinkel/deploy.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-sync_git() {
- SRC=$1
- DEST=$2
- mkdir -p $DEST
- rsync -aHAXxv --numeric-ids --delete --progress --exclude='.git' \
- --exclude='.gitignore' \
- --exclude='*/target' \
- --exclude='abgabe.sh' \
- --exclude='.venv' \
- --exclude='site' \
- --exclude="'${abgabe_zip}.zip'" \
- $SRC $DEST
-
- git -C $DEST add .
- git -C $DEST commit -a -m "Commit Datum: $(date --iso-8601=seconds)"
- git -C $DEST push origin main
-
-}
-
-sync_git ./ ../codeberg.page/kurswinkel
\ No newline at end of file
diff --git a/codeberg.page/kurswinkel/division.c b/codeberg.page/kurswinkel/division.c
deleted file mode 100644
index 451130c..0000000
--- a/codeberg.page/kurswinkel/division.c
+++ /dev/null
@@ -1,7 +0,0 @@
-#include <stdio.h>
-
-int main() {
- int x = 11 / (-7);
- printf("%d\n",x);
- return 0;
-}
diff --git a/codeberg.page/kurswinkel/division.py b/codeberg.page/kurswinkel/division.py
deleted file mode 100644
index e69de29..0000000
--- a/codeberg.page/kurswinkel/division.py
+++ /dev/null
diff --git a/codeberg.page/kurswinkel/index.html b/codeberg.page/kurswinkel/index.html
deleted file mode 100644
index 049caf9..0000000
--- a/codeberg.page/kurswinkel/index.html
+++ /dev/null
@@ -1,16 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
- <meta charset="UTF-8">
- <title>Index</title>
- <script src="https://cdn.jsdelivr.net/npm/jsxgraph/distrib/jsxgraphcore.js"></script>
- <link rel="stylesheet" type="text/css"
- href="https://cdn.jsdelivr.net/npm/jsxgraph/distrib/jsxgraph.css">
-
-</head>
-<body>
-<h1>Fluglinien mit Kurswinkel</h1>
-<div id="box" class="jxgbox" style="width:950px; aspect-ratio: 1/1;"></div>
-<script src="tangente.js"></script>
-</body>
-</html>
\ No newline at end of file
diff --git a/codeberg.page/kurswinkel/tangente.js b/codeberg.page/kurswinkel/tangente.js
deleted file mode 100644
index 8aae1d3..0000000
--- a/codeberg.page/kurswinkel/tangente.js
+++ /dev/null
@@ -1,117 +0,0 @@
-const toXYZ = (longitude, latitude) => {
- const lon = (longitude * Math.PI) / 180;
- const lat = (latitude * Math.PI) / 180;
-
- const x = RADIUS * Math.cos(lat) * Math.cos(lon);
- const y = RADIUS * Math.cos(lat) * Math.sin(lon);
- const z = RADIUS * Math.sin(lat);
-
- return [x, y, z];
-};
-
-const toHomogeneousXYZ = (longitude, latitude) => {
- const xyz = toXYZ(longitude, latitude);
- xyz.unshift(0);
- return xyz;
-}
-
-const toLonLat = (x, y, z) => {
- const R = Math.hypot(x, y, z);
- const longitude = (Math.atan2(y, x) * 180) / Math.PI; // [-180, 180]
- const latitude = (Math.asin(Math.max(-1, Math.min(1, z / R))) * 180) / Math.PI; // [-90, 90]
- return [longitude, latitude];
-};
-
-
-const cross = (a, b) => [
- a[1] * b[2] - a[2] * b[1],
- a[2] * b[0] - a[0] * b[2],
- a[0] * b[1] - a[1] * b[0],
-];
-
-const normalVector = ([lon1, lat1], [lon2, lat2], normalize = false) => {
- const n = cross(toXYZ(lon1, lat1), toXYZ(lon2, lat2));
- if (!normalize) return n;
-
- const len = Math.hypot(...n);
- if (len < 1e-12) return null; // points are parallel or antipodal: no unique normal
- const m = n.map(c => c / len);
- m.unshift(0)
- return m;
-}
-
-
-const toGeographicLabel = (lon, lat) => {
- return `${ lon.toFixed(1) }°|${ lat.toFixed(1)}°`;
-}
-
-
-// board commands
-const RADIUS = 6;
-const BOARD_SIZE = 14;
-
-const board = JXG.JSXGraph.initBoard(
- 'box', {
- boundingbox: [-BOARD_SIZE, BOARD_SIZE, BOARD_SIZE, -BOARD_SIZE],
- //axis: true
- });
-const bound = [-10, 10];
-const view = board.create('view3d',
- [[-10, -10], [19, 19],
- [bound, bound, bound]],
- {
- axesPosition: 'none',
- xPlaneRear: {visible: true},
- yPlaneRear: {visible: true},
- zPlaneRear: {visible: true},
- //
- az: { slider: { visible: true } },
- el: { slider: { visible: true } },
- bank: { slider: { visible: true } },
- }
-);
-
-const origin = view.create('point3d', [0,0,0], {name:"O", fixed: true});
-const earth = view.create('sphere3d', [origin, RADIUS]);
-
-const NORTH_POLE = [0, 90];
-const north_pole = toHomogeneousXYZ(...NORTH_POLE);
-const equator = view.create('circle3d', [origin, north_pole, RADIUS], {
- strokeColor:"red", fixed: true
-});
-const northPoint = view.create('point3d', [toXYZ(...NORTH_POLE)], {
- name:'N', fixed: true, highlight: true, showInfobox: false,
-});
-
-
-const prime_meridian_normal = toHomogeneousXYZ(90, 0)
-const prime_meridian = view.create('circle3d', [origin, prime_meridian_normal, RADIUS], {
- strokeColor: "blue",
- fixed: true
-});
-
-const TANGENT_COORDINATE = [-30, 60]
-const tangentPoint = view.create('point3d', [toXYZ(...TANGENT_COORDINATE)], {
- id:'T', fixed: true, highlight: true, showInfobox: false,
-});
-tangentPoint.element2D.label.setText( () => "T = " + toGeographicLabel( ...toLonLat(tangentPoint.X(),tangentPoint.Y(), tangentPoint.Z() ) ) );
-
-const tangentPlan = view.create('circle3d',
- [tangentPoint, () => [0, tangentPoint.X(), tangentPoint.Y(), tangentPoint.Z()], RADIUS],
- {fillColor:"red", fillOpacity:0.25, fixed: true}
-);
-
-const TARGET_COORDINATE = [120, 0];
-const targetPoint = view.create('point3d', [toXYZ(...TARGET_COORDINATE)], {
- id: 't', name:toGeographicLabel(...TARGET_COORDINATE), fixed: true, highlight: true, showInfobox: false,
-});
-
-
-const routeNormalVector = normalVector(TANGENT_COORDINATE, TARGET_COORDINATE);
-const route = view.create('circle3d', [origin, routeNormalVector, RADIUS] );
-
-const meridianNormalVector = normalVector(TANGENT_COORDINATE, NORTH_POLE);
-const meridianPlan = view.create('circle3d', [origin, meridianNormalVector, RADIUS]);
-
-const projectionLine = view.create('line3d', [targetPoint, toXYZ(...TANGENT_COORDINATE), [0, Infinity] ]);
-const ot = view.create('line3d', [origin, tangentPoint])
\ No newline at end of file
--
Gitblit v1.10.0