Skip to content

Instantly share code, notes, and snippets.

MNHcC (Michael Hegenbarth) carschrotter

View GitHub Profile
@carschrotter
carschrotter / bhc9938d.c
Created Oct 10, 2017
pilight 5 bhc9938d protocol from raw
View bhc9938d.c
/*
* File: bhc9938d.c
* Author: Michael Hegenbarth (carschrotter) <mnh@mn-hegenbarth.de>
*
* Created on 23. Januar 2015, 13:19
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
View removeHouseNumber.php
<?php
/**
* Removed the house number from a german like address
* @param string $street
* @return string
*/
function removeHouseNumber($street) {
// removes the last occurrence of a house number type specification: 12. Februar-Platz 1A = 1A
//entfernt letztes vorkommen einer Hausummerntypischen Angabe: 12. Februar-Platz 1A = 1A
You can’t perform that action at this time.