Skip to content

Instantly share code, notes, and snippets.

@bennadel
bennadel / index.htm
Created August 1, 2018 12:30
Checking To See If An Element Has A CSS Pseudo-Class In JavaScript
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>
Checking To See If An Element Has A CSS Pseudo-Class In JavaScript
</title>
<link rel="stylesheet" type="text/css" href="./demo.css" />
</head>
@bbock
bbock / README.md
Last active March 19, 2024 21:14
A PostgresSQL function to merge TeslaMate drives in the database

A PostgresSQL function to merge TeslaMate drives and charges in the database

Please note that the functions are only capable to merge a continuous range of drives/charges.

Make sure that all drives that shall be merged are terminated (how to terminate drives manually is described in the documentation.

Create the function by executing the file with e.g.

docker-compose exec database psql teslamate teslamate &lt; teslamate_merge_drives.sql