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
Windows is one of the greatest operating systems ever built. | |
There is no doubt about that, but on the other hand it sometimes can be a real pain. | |
Especially when it comes to reproducable routines. | |
The Command-Promt features tools as running .bat files, but when it comes to ease of use, I personally prefer zsh. | |
zsh, bash or other text-based shells don't come with Windows naturally. | |
Anyway, it is possible to get these running. | |
One of the possibilities to achieve that is running the Windows-Subsystem-for-Linux, abbr. WSL. | |
WSL is a compatibility layer for Windows systems that makes it possible to run Linux executables. |
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
{ | |
"tasks": [ | |
{ | |
"type": "cppbuild", | |
"label": "C/C++: g++.exe build active file", | |
"command": "C:\\mingw64\\bin\\g++.exe", | |
"args": [ | |
"-fdiagnostics-color=always", | |
"-g", | |
"${file}", |
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
{ | |
"clang": { | |
"clang-compilation-path": "", | |
"clang-dialect": "-std=c++20", | |
"clang-flags": [ | |
"" | |
], | |
"clang-include-input-source": true, | |
"clang-parsing": false, | |
"clang-use-headers": true |
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
# Zunächst muss definiert werden, welche | |
# CMake Version mindestens benötigt wird | |
# um dieses Script auszuführen | |
cmake_minimum_required(VERSION 3.10) | |
# Im Anschluss daran wird ein Projektname | |
# festgelegt, auf welchen auch später über | |
# Variablen innerhalb des CMake Files zu- | |
# gegriffen werden kann, in diesem Fall | |
# "HELLO" |
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
#!python3 | |
import tkinter as tk | |
from tkinter import messagebox | |
import requests | |
# Keycloak-Konfiguration | |
keycloak_url = "https://your-keycloak-server/auth/realms/your-realm/protocol/openid-connect/token" | |
client_id = "your-client-id" | |
client_secret = "your-client-secret" |
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
import tkinter as tk | |
from tkinter import messagebox | |
import requests | |
# Keycloak-Konfiguration | |
keycloak_url = "https://your-keycloak-server/auth/realms/your-realm/protocol/openid-connect/token" | |
client_id = "your-client-id" | |
client_secret = "your-client-secret" | |
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
import requests | |
import sys | |
def fetch_data(api_url): | |
response = requests.get(api_url) | |
data = response.json() | |
return data | |
def sort_data(data, column): | |
try: |
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
import csv | |
import io | |
from fastapi import FastAPI, File, UploadFile, HTTPException | |
from sqlalchemy import create_engine, Column, Integer, String, Float, ForeignKey | |
from sqlalchemy.ext.declarative import declarative_base | |
from sqlalchemy.orm import declarative_base, relationship, sessionmaker | |
# Datenbankkonfiguration | |
DATABASE_URL = "sqlite:///./sensordaten.db" | |
engine = create_engine(DATABASE_URL) |
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
cmake_minimum_required(VERSION 3.16) | |
project(example_1) | |
include(CheckCXXCompilerFlag) | |
include(CheckCXXSourceCompiles) | |
include(CheckIncludeFile) | |
include(CheckIncludeFiles) | |
find_package(CopperSpice REQUIRED) | |
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
cmake_minimum_required(VERSION 3.16) | |
project(example_1) | |
include(CheckCXXCompilerFlag) | |
include(CheckCXXSourceCompiles) | |
include(CheckIncludeFile) | |
include(CheckIncludeFiles) | |
find_package(CopperSpice REQUIRED) | |
OlderNewer