Skip to content

Instantly share code, notes, and snippets.

Tim Hinkes Timmeey

Block or report user

Report or block Timmeey

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Timmeey
Timmeey / ListPermutations.kt
Created Feb 12, 2019
Reusable snippet to get permutations of a list real quick
View ListPermutations.kt
import kotlin.streams.asStream
fun main(args: Array<String>) {
val listPermutations = ListPermutations(listOf("a", "b", "c", "d"), 2)
listPermutations.forEach { println(it) }
/* [a, b]
[b, a]
[c, a]
[d, a]
[a, c]
View gist:2f994844b17e40c1238bb988d44fbfc1
Ich habe vor kurzem einen Artikel bei ihnen bestellt, den sie per DHL verschickt haben.
Leider bekommt DHL es mal wieder nicht hin die bestellte und bezahlte Dienstleistung zu erbringen und die Sendung zuzustellen.
Zwar haben Sie keine Schuld an dem Problem, dennoch muss ich zweimal darüber nachdenken, ob ich wirklich bei ihnen bestelle, oder bei einem ihrer Konkurrenten, die dafür aber nicht mit DHL versenden.
Daher möchte ich ihnen gerne Feedback geben
und sie generell darum bitten doch in Zukunft über einen anderen Logistikanbieter wie z.b. DPD nachzudenken.
DPD hat bei mir immer eine spitzen Leistung geliefert.
Mit freundlichen Grüßen
@Timmeey
Timmeey / sds011.py
Last active Mar 24, 2018 — forked from geoffwatts/sds011.py
Read an SDS011 Laser PM2.5 Sensor (Nova PM Sensor) with Python
View sds011.py
#!/usr/bin/python
# -*- coding: UTF-8 -*-
import serial, time, struct
ser = serial.Serial()
ser.port = "/dev/cu.wchusbserial1410" # Set this to your serial port
ser.baudrate = 9600
ser.open()
@Timmeey
Timmeey / checkstyle.xml
Created Mar 10, 2018
default checkstyle for Library projects
View checkstyle.xml
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
"http://checkstyle.sourceforge.net/dtds/configuration_1_3.dtd">
<!--
Checkstyle configuration that checks the Google coding conventions from Google Java Style
that can be found at https://google.github.io/styleguide/javaguide.html.
Checkstyle is very configurable. Be sure to read the documentation at
@Timmeey
Timmeey / notes.sh
Last active Nov 19, 2017
VERY simple and basic note taking script i use for myself. It can save "readLater" kind of notes or actual notes, always pullin/pushing it to a git repository
View notes.sh
#!/bin/bash
ROOT=$HOME/notes
notes(){
(cd $ROOT
git pull
echo $1 >> notes
git add notes
git commit -m "new note"
git push
@Timmeey
Timmeey / keybase.md
Created May 18, 2016
keybase.io/timmeey proof
View keybase.md

Keybase proof

I hereby claim:

  • I am timmeey on github.
  • I am timmeey (https://keybase.io/timmeey) on keybase.
  • I have a public key whose fingerprint is 54BE 22C1 C9F3 664A 165F 30E0 4830 BC6B 84EE 75A5

To claim this, I am signing this object:

View _ranger.py
"""
The range trading bot would work on price swings in a preset range
IMPORTANT: You have to configure it to what you believe the trading corridor is!
DISCLAIMER: all losses or harm resulting from the use of this code is YOUR SOLE responsibility
2013-12-12 piramida, based on balancer bot by prof7bit
goxtool is property of prof7bit
"""
from datetime import datetime
View gitignore
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
You can’t perform that action at this time.