diff --git a/day_5/h_t.py b/day_5/h_t.py new file mode 100755 index 0000000..b558b39 --- /dev/null +++ b/day_5/h_t.py @@ -0,0 +1,26 @@ +#!/usr/bin/env python3 + +import subprocess + +import matplotlib.pyplot as plt + +# Run the command and get the standard output +h_t = subprocess.run( + "curl -Ls https://gitlab.rlp.net/mobitar/julia_course/-/raw/main/Day_3/resources/fitting_task_data.csv | tail -n +6 | head -n -2 | cut -d ',' -f 1,3", + shell=True, + capture_output=True, + text=True, +).stdout + +h_values = [] +t_values = [] + +for line in h_t.strip().split("\n"): + h, t = line.strip().split(",") + h_values.append(h) + t_values.append(t) + +plt.plot(h_values, t_values) +plt.xlabel("h") +plt.ylabel("t") +plt.savefig("h_t.pdf") diff --git a/day_5/ripgrep.sh b/day_5/ripgrep.sh new file mode 100755 index 0000000..0c975f6 --- /dev/null +++ b/day_5/ripgrep.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +curl -Ls https://knowunity.de/knows/biologie-neurobiologie-1c6a4647-4707-4d1b-8ffb-e7a750582921 | rg '.*(https://.+\.pdf).*' -r '$1' | xargs curl -LsO