Skip to content

Instantly share code, notes, and snippets.

View olf's full-sized avatar

Olaf Peters olf

View GitHub Profile
@olf
olf / README.md
Last active May 3, 2018 12:26
Table Cell Diff

Highlight changed values in the cells of a table's column(s).

Usage:

Add class "diff" to the table and all cells that should be diffed. The script will assign additional classes to the td's existing classes depending on the change:

  • 'first' for the initial value (first line)
  • 'changed' if value is different from the previous row
  • 'unchanged' if value is same as in previous row
@olf
olf / netatmo_pws.php
Last active October 16, 2018 05:54 — forked from mfr/netatmo_pws.php
Reading last data from netatmo device and sending it to wunderground.
#!/usr/bin/php
<?php
date_default_timezone_set('UTC');
/**
* oAuth settings from http://dev.netatmo.com/dev/listapps
*/
define('APP_ID', '');
define('APP_SECRET', '');
define('USERNAME', '');
define('PASSWORD', '');

Keybase proof

I hereby claim:

  • I am olf on github.
  • I am olf (https://keybase.io/olf) on keybase.
  • I have a public key whose fingerprint is 1BB8 4014 42D4 0D49 25CD 94D0 3561 8778 728F 1AB6

To claim this, I am signing this object: