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 | |
| from bs4 import BeautifulSoup | |
| from datetime import datetime | |
| res = requests.get("https://nos.nl/sport/laatste") | |
| res.raise_for_status() | |
| soup = BeautifulSoup(res.text, "html.parser") | |
| articles = soup.select("section > ul > li") |
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 serial | |
| import tkinter as tk | |
| import threading | |
| # seriele port verschilt per pc/arduino | |
| ser = serial.Serial("/dev/tty.usbmodem21301", 9600, timeout=0.1) | |
| root=tk.Tk() | |
| value = tk.StringVar() | |
| label = tk.Label(root,textvariable=value, font=("Arial", 96)) |
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
| #include <Adafruit_NeoPixel.h> | |
| #define PIN_NEO_PIXEL 10 // Arduino pin that connects to NeoPixel | |
| #define NUM_PIXELS 144 // The number of LEDs (pixels) on NeoPixel | |
| Adafruit_NeoPixel NeoPixel(NUM_PIXELS, PIN_NEO_PIXEL, NEO_GRBW + NEO_KHZ800); | |
| String inString = ""; | |
| int color; |
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
| h1 { | |
| color: red; | |
| } |