Skip to content

Instantly share code, notes, and snippets.

View thinkJD's full-sized avatar

Jan Georgens thinkJD

  • essentry
  • Germany
View GitHub Profile

Keybase proof

I hereby claim:

  • I am thinkjd on github.
  • I am thinkjd (https://keybase.io/thinkjd) on keybase.
  • I have a public key ASC79NI4mUhv42IJcQ-s_CYj6jyeDrecwu9jP92MhQ9XpQo

To claim this, I am signing this object:

@thinkJD
thinkJD / gifme_download
Last active August 29, 2015 14:05
gifme.io automatic downloader
# ----------------------------------------------------------------------------
# "THE BEER-WARE LICENSE" (Revision 42):
# <[email protected]> wrote this file. As long as you retain this notice you
# can do whatever you want with this stuff. If we meet some day, and you think
# this stuff is worth it, you can buy me a beer in return Jan-Daniel Georgens
# ----------------------------------------------------------------------------
from BeautifulSoup import BeautifulSoup
import urllib2
import urllib
@thinkJD
thinkJD / GameOfLife
Created January 30, 2015 21:18
Game Of Life
# coding=utf8
"""
Description: This is a basic "life" simulation that follows three distinct rules:
1.Any live cell with fewer than two live neighbours dies
2.Any live cell with two or three live neighbours lives
3.Any live cell with more than three live neighbours dies
4.Any dead cell with exactly three live neighbours becomes a live cell
A neighbor is deemed as any cell directly horizantal/vertical/diagonal
meaning there are 9 neighbors to a cell at any time
"""
@thinkJD
thinkJD / ThunderboardRead.py
Created August 14, 2017 14:29
Readout Thunderboard Sense and write the values to influxDB
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
from bluepy.btle import Peripheral
import time
from influxdb import InfluxDBClient
from influxdb import SeriesHelper
# InfluxDB connections settings
host = ''
port = ''
user = ''
@thinkJD
thinkJD / gist:6ea307a7714ec1e64084f833b43268d6
Created August 23, 2022 08:30
klipper 3d config for i3Berlin
# This file contains common pin mappings for RUMBA boards. To use
# this config, the firmware should be compiled for the AVR atmega2560.
# See docs/Config_Reference.md for a description of parameters.
[stepper_x]
step_pin: PH0
dir_pin: PH1
enable_pin: !PL1
microsteps: 16