Skip to content

Instantly share code, notes, and snippets.

@nekman
nekman / aidon6534-slimmelezer.md
Last active November 28, 2022 08:56
SlimmeLezer+ with Aidon 6534 (communication module 6442 S) energy meter

SlimmeLezer+ with Aidon 6534 (communication module 6442 S) energy meter

Bought a SlimmeLezer+ to read data from the energy meter Aidon 6534.

Installed it according to the guide. Got power from the HAN-port using the provided serial cable, but I also needed to connect it to the USB-C to get it to work well.

Once setup and connected, I used the web interface to discover that it could not parse the data from the energy meter. The following error message was displayed in the log:

@nekman
nekman / API.md
Created January 21, 2020 14:33 — forked from iros/API.md
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

@nekman
nekman / tdr-response.json
Created March 1, 2019 11:52
Search for:
{
"data": [
{
"id": "doc000015805",
"type": "documents",
"attributes": {
"publicationType": "OM",
"publicationTitle": {
"en": "Husqvarna T535iXP"
},
/**
*
* Methods and member ordering (proposal).
*
*/
public class Example implements Closeable {
// 1. Public static final constants
public static final String CONSTANT = "";
@nekman
nekman / node-esm.md
Last active September 29, 2018 11:59
Node.js with esm and app-module-path (using mocha as test runner)

Node.js with esm and app-module-path

This is a short post on how to use ESM with app-module-path in a Node.js (6+) project.

Q: Why?

Lots of benifits, easier to export/import modules.

Instead of:

console.log(...Object.entries(window.localStorage))
@nekman
nekman / polyfill.js
Last active December 3, 2021 19:35
polyfill.io IE11
/* Polyfill service v3.16.0
* For detailed credits and licence information see https://github.com/financial-times/polyfill-service.
*
* UA detected: ie/11.0.0
* Features requested: default
*
* - Array.from, License: CC0 (required by "default")
* - Array.of, License: MIT (required by "default")
* - Array.prototype.fill, License: CC0 (required by "default")
* - Event, License: CC0 (required by "default", "CustomEvent", "Promise")
@nekman
nekman / a.js
Created September 23, 2016 03:17 — forked from isaacs/a.js
var Module = require('module')
Module.prototype.require = function (orig) { return function (id) {
console.trace(this, id)
return orig.apply(this, arguments)
}}(Module.prototype.require)
require('./b.js')
@nekman
nekman / index.js
Created September 13, 2016 14:20
requirebin sketch
const mustache = require('mustache');
const template = `
Hello <strong>{{first_name}}!</strong>`;
const user = {
data: {
attributes: {
first_name: 'John'
}
@nekman
nekman / tabs2spacesOSX.sh
Last active April 18, 2016 14:30 — forked from bluefuton/gist:1468061
OS X: replace tabs with spaces in all files using expand
find . -name "*.java" | while read line; do expand -t 2 $line > $line.new; mv $line.new $line; done