Skip to content

Instantly share code, notes, and snippets.

View dennisheitmann's full-sized avatar
👍
Having fun!

Dennis Heitmann dennisheitmann

👍
Having fun!
View GitHub Profile
@dennisheitmann
dennisheitmann / corona.ipynb
Last active April 2, 2022 07:54
Corona.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dennisheitmann
dennisheitmann / reset.ino
Created August 2, 2019 21:21
Arduino Software "Reset" (restart of sketch)
void softwareReset(unsigned long delayMillis) {
uint32_t resetTime = millis() + delayMillis;
while (resetTime > millis()) {
/* wait and do nothing until the required delay expires... */
}
// jump to the start of the program
asm volatile("jmp 0");
}
void setup() {
pipreqs folder
@dennisheitmann
dennisheitmann / update-all-pip.bat
Last active September 29, 2018 08:59
Alle Python-Pakete updaten
REM pip install pip-review
pip-review --auto
@dennisheitmann
dennisheitmann / gps-tracker-server.py
Last active June 29, 2020 21:06
Banggood H02 GPS Tracker (Product ID: 1031247) on own server (Change server IP to your server's IP and port to 5000 via SMS on the tracker before)
#!/usr/bin/env python3
import socket
import datetime
import sys
import geopy
import gpxpy
import gpxpy.gpx
import matplotlib
matplotlib.use('agg')
@dennisheitmann
dennisheitmann / suncalc.php
Created March 31, 2017 21:22
Sunrise and sunset at given coordinates (PHP)
#!/usr/bin/php
<?php
$lat = 47.85;
$lon = 12.55;
if (isset($argv[1])) {
$sun = $argv[1];
} else {
$sun = "";
}
switch ($sun) {

Keybase proof

I hereby claim:

  • I am dennisheitmann on github.
  • I am dennisheitmann (https://keybase.io/dennisheitmann) on keybase.
  • I have a public key whose fingerprint is 7B98 18B9 DC24 996D 4B1F E076 9BCA 0EA6 702C E1C9

To claim this, I am signing this object: