Skip to content

Instantly share code, notes, and snippets.

View karlbeecken's full-sized avatar
🏠

Karl Beecken karlbeecken

🏠
View GitHub Profile
@Ben-Ro
Ben-Ro / FridaysforFuture-de-map-generator.py
Last active May 3, 2019 17:07
Ein crawler der von https://fridaysforfuture.de/streiktermine/ die aktuell gelisteten Streiks in ein JS umwandelt, welches auf der leaflet Karte angezeigt werden kann.
import requests
import pandas as pd
from geopy.geocoders import Nominatim
geolocator = Nominatim(user_agent="FridaysforFuture.de Streikkarte")
url = 'https://fridaysforfuture.de/streiktermine/'
html = requests.get(url).content
df_list = pd.read_html(html)
df = df_list[0]
@gileri
gileri / Send multiple floats from Arduino to Raspberry through I2C
Last active November 27, 2023 21:54
Sending float from arduino to raspberry pi using Wire (arduino) and smbus (python) libraries
http://bradsrpi.blogspot.fr/2013/03/sending-data-from-arduino-to-raspberry.html
@jaxbot
jaxbot / gist:5748513
Created June 10, 2013 12:58
Block nginx from serving .git directories
location ~ /\.git {
deny all;
}
# or, all . directories/files in general (including .htaccess, etc)
location ~ /\. {
deny all;
}