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
# Copyright Broadcom, Inc. All Rights Reserved. | |
# SPDX-License-Identifier: APACHE-2.0 | |
services: | |
mariadb: | |
image: docker.io/bitnami/mariadb:11.4 | |
environment: | |
# ALLOW_EMPTY_PASSWORD is recommended only for development. | |
- ALLOW_EMPTY_PASSWORD=yes | |
- MARIADB_USER=bn_moodle |
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 cv2 | |
import numpy as np | |
from gpiozero import LED | |
ledgreen = LED(17) | |
ledblue = LED(18) | |
ledred = LED(19) | |
# IP-Adresse und Port der Android IP Webcam |
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 cv2 | |
from PIL import Image | |
import re | |
from transformers import DonutProcessor, VisionEncoderDecoderModel | |
from datasets import load_dataset | |
import torch | |
allowed_cars = ["HAP515"] | |
# Initialisieren Sie die Kamera |
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
from gpiozero import LED | |
from time import sleep | |
# Erstellen Sie ein LED-Objekt, das mit GPIO 17 verbunden ist | |
ledgreen = LED(17) | |
ledblue = LED(18) | |
ledred = LED(19) | |
# LED ein- und ausschalten | |
while 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
import asyncio | |
import logging | |
from asyncua import Server, ua | |
from asyncua.common.methods import uamethod | |
async def main(): | |
_logger = logging.getLogger(__name__) | |
# setup our server |
- sudo apt-get update
- sudo apt-get upgrade
- sudo apt-get install mysql-server mysql-client libmysqlclient-dev
- sudo apt-get install apache2 apache2-doc apache2-utils libexpat1 ssl-cert
- sudo apt-get install libapache2-mod-php7.4 php7.4 php7.4-common php7.4-curl php7.4-dev php7.4-gd php-pear php-imagick php7.4-mysql php7.4-ps php7.4-xsl
- sudo apt-get install php7.4-zip php7.4-mbstring php7.4-intl
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
private double getBeitrag(int alter, int mitgliedsjahre) { | |
double beitrag = 0; | |
if (alter < 18) { | |
beitrag = 30.0; | |
} else if (alter <= 12) { | |
beitrag = 15.0; | |
} else { | |
beitrag = 50.0; | |
} | |
if (mitgliedsjahre > 5 && mitgliedsjahre <= 15) { |
NewerOlder