Skip to content

Instantly share code, notes, and snippets.

View jensjeflensje's full-sized avatar

Jens de Ruiter jensjeflensje

View GitHub Profile
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")
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))
#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;
@jensjeflensje
jensjeflensje / index.css
Created April 14, 2019 09:38
Flask tutorial 2
h1 {
color: red;
}