<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Skripty on afad notes</title><link>https://www.ferokiraly.com/afad/docs/interaktivita_w_23/skripty/</link><description>Recent content in Skripty on afad notes</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><atom:link href="https://www.ferokiraly.com/afad/docs/interaktivita_w_23/skripty/index.xml" rel="self" type="application/rss+xml"/><item><title>Audio player</title><link>https://www.ferokiraly.com/afad/docs/interaktivita_w_23/skripty/audio_player/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.ferokiraly.com/afad/docs/interaktivita_w_23/skripty/audio_player/</guid><description>import pygame # Initialize Pygame and its mixer pygame.init() pygame.mixer.init() # Load the sound file sound_file = &amp;#39;path/to/your/soundfile.wav&amp;#39; # Replace with the path to your sound file sound = pygame.mixer.Sound(sound_file) # Play the sound sound.play() # Keep the program running until the sound is done playing while pygame.mixer.get_busy(): pygame.time.delay(100)</description></item><item><title>Gesta</title><link>https://www.ferokiraly.com/afad/docs/interaktivita_w_23/skripty/gesta/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.ferokiraly.com/afad/docs/interaktivita_w_23/skripty/gesta/</guid><description>https://www.geeksforgeeks.org/face-and-hand-landmarks-detection-using-python-mediapipe-opencv/
# Import Libraries import cv2 import time import mediapipe as mp # Grabbing the Holistic Model from Mediapipe and # Initializing the Model mp_holistic = mp.solutions.holistic holistic_model = mp_holistic.Holistic( min_detection_confidence=0.5, min_tracking_confidence=0.5 ) # Initializing the drawing utils for drawing the facial landmarks on image mp_drawing = mp.solutions.drawing_utils # (0) in VideoCapture is used to connect to your computer&amp;#39;s default camera capture = cv2.VideoCapture(0) # Initializing current time and precious time for calculating the FPS previousTime = 0 currentTime = 0 while capture.</description></item><item><title>Scrape</title><link>https://www.ferokiraly.com/afad/docs/interaktivita_w_23/skripty/scrape/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.ferokiraly.com/afad/docs/interaktivita_w_23/skripty/scrape/</guid><description>#!/bin/python from bs4 import BeautifulSoup import requests import sys a = [] # prazdny zoznam page = BeautifulSoup(requests.get(&amp;#34;http://&amp;#34; + sys.argv[1]).text, &amp;#34;lxml&amp;#34;) for data in page.find_all(sys.argv[2]): a.append(data.text.strip()) for x in range(len(a)): print(a[x])</description></item><item><title>Snake</title><link>https://www.ferokiraly.com/afad/docs/interaktivita_w_23/skripty/snake/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.ferokiraly.com/afad/docs/interaktivita_w_23/skripty/snake/</guid><description>import pygame import sys import random import time # Initialize Pygame pygame.init() # Get the screen dimensions screen_info = pygame.display.Info() WIDTH, HEIGHT = screen_info.current_w, screen_info.current_h # Set the GRID_SIZE, FPS, and SPARKLE_DURATION GRID_SIZE = 30 FPS = 10 SPARKLE_DURATION = FPS # Number of frames for the sparkle to last (1 second) SPARKLE_TIMER = 0 # Time (in seconds) to activate the sparkle effect # Snake class class Snake: def __init__(self): self.</description></item><item><title>Vypisovatko</title><link>https://www.ferokiraly.com/afad/docs/interaktivita_w_23/skripty/vypisovatko/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.ferokiraly.com/afad/docs/interaktivita_w_23/skripty/vypisovatko/</guid><description>import pythonosc.osc_server import pythonosc.dispatcher # toto ma kazdy ine ip = &amp;#34;192.168.10.32&amp;#34; port = 5050 def center(znak, pocetznakov, dlzka_riadku): dlzka_okraja = (dlzka_riadku - pocetznakov) // 2 okraj = &amp;#34; &amp;#34; * dlzka_okraja obsah = znak * pocetznakov riadok = okraj + obsah + okraj return riadok def mega(addr, *args): # print(addr) data = int(args[0]) print(center(&amp;#34;0&amp;#34;, data, 500)) # vytvorim dispecera disp = pythonosc.dispatcher.Dispatcher() # default co ma robit ked nieco pride # disp.</description></item></channel></rss>