Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
"""
rename_diacritics.py
Renames files and folders whose names contain diacritic characters,
using an explicit mapping table to control each substitution.
Combining diacritic sequences (NFD form, e.g. 'a' + U+030A ring-above)
are first collapsed to their precomposed equivalents via NFC normalisation
before the mapping table is applied, so both forms are covered by one entry.
import board
import displayio
import terminalio
import time
from adafruit_display_text import label
from adafruit_display_shapes.rect import Rect
from adafruit_display_shapes.circle import Circle
from adafruit_pybadger import pybadger
import random
import board
import displayio
import terminalio
import time
import random
from adafruit_display_text import label
SCREEN_WIDTH = 160
SCREEN_HEIGHT = 128
# Fetches data from https://www.energidataservice.dk/tso-electricity/elspotprices
# API documentation http://docs.ckan.org/en/latest/api/index.html#making-an-api-request
from datetime import datetime, timedelta
import time
import requests
from influxdb import InfluxDBClient
import paho.mqtt.client as mqtt
@tiede
tiede / index.php
Last active August 29, 2019 11:29
<?php
$welcomeText='<p>Hello MMA</p>';
?>
<?=$welcomeText;?>
<?php
$xmlstr = <<<XML
<?xml version='1.0' standalone='yes'?>
<questions>
<question text='Do you like beer?'>
<answer text='YES!' />
@tiede
tiede / keybase.md
Last active August 29, 2015 14:15
Keybase proof

Keybase proof

I hereby claim:

  • I am tiede on github.
  • I am kimtiede (https://keybase.io/kimtiede) on keybase.
  • I have a public key whose fingerprint is 6F31 5244 24CE E5B0 CAD4 FE3F 3FA4 23BF F345 FBC3

To claim this, I am signing this object: