Skip to content

Instantly share code, notes, and snippets.

View danielkochdakitec's full-sized avatar

Daniel Koch danielkochdakitec

View GitHub Profile
@danielkochdakitec
danielkochdakitec / sitemap.xml
Created March 28, 2020 09:20
Example sitemap
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url>
<loc>https://dakitec.de/</loc>
<lastmod>2020-01-01</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://dakitec.de/blog</loc>
@danielkochdakitec
danielkochdakitec / cookie-banner.html
Last active January 11, 2024 17:42
Cookie-Banner selbst erstellen - nicht mehr rechtssicher, stattdessen hier schauen: https://dakitec.de/wissen/software-dsgvo-konform#cookiebot-cmp
@danielkochdakitec
danielkochdakitec / pts to pcd
Last active June 6, 2020 07:55
Convert a PTS to a PCD file using Python line-by-line
inputFile = open("result_input.pts", "r") # Input-file
outputFile = open("result_output.pcd", "w") # Output-file
length = int(inputFile.readline()) # First line is the length
outputFile.write("VERSION .7\nFIELDS x y z rgb\nSIZE 4 4 4 4\nTYPE F F F F\nCOUNT 1 1 1 1\nWIDTH {}\nHEIGHT 1\nVIEWPOINT 0 0 0 1 0 0 0\nPOINTS {}\nDATA ascii\n".format(length, length)) # Sets the header of pcd in a specific format, see more on http://pointclouds.org/documentation/tutorials/pcd_file_format.php
currentLinePosition = 0
for line in inputFile: