Skip to content

Instantly share code, notes, and snippets.

View mekanoid's full-sized avatar

Peter Kindström mekanoid

View GitHub Profile
mekanoid / Script för att ställa ljusstyrka och färgtemperatur
Last active April 4, 2021 11:17
IKEA Trådfri: Förinställda värden
alias: Arbetsrum tak, min
- service: light.turn_on
transition: 2
brightness_pct: 50
entity_id: light.taket_arbetsrun
# You need a delay to get the light to change both brightness and colortemp
mekanoid / String to char
Last active December 13, 2020 14:08
Android convert
# toCharArray(buf, len);
Copies the string’s characters to the supplied buffer.
## Syntax
myString.toCharArray(buf, len)
## Parameters
myString: a variable of type String
buf: the buffer to copy the characters into (char [])
mekanoid / C help
Last active January 10, 2022 18:26
## String handling
LANGUAGE compareTo()
LANGUAGE concat()
LANGUAGE c_str()
LANGUAGE endsWith()
LANGUAGE equals()
mekanoid / Application
Last active December 26, 2020 14:53
MRC Comments
// ==================================================================================================
// MRC Application [name]
// Copyright (C) 2020 Peter Kindström
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.