Skip to content

Instantly share code, notes, and snippets.

Avatar
🌩️
connecting things to the internet

Markus Tacker coderbyheart

🌩️
connecting things to the internet
View GitHub Profile
@coderbyheart
coderbyheart / MarsRover.example.md
Created Sep 18, 2022
BDD Markdown GitHub report examples
View MarsRover.example.md

✔️ Test suite

Failed: 0
Passed: 1
Total: 1
Duration: 1 ms

RunFirmware.feature

Run time: 1 ms

@coderbyheart
coderbyheart / embedded-software-conferences.md
Last active May 19, 2022
Embedded Software Conferences
View embedded-software-conferences.md

Embedded Software Conferences

I am an avid conference attendee, speaker and organizer, but all in the area of software development and testing for cloud-based software.

My colleagues have reached out to me in search for interesting conferences that focus on embedded software development (in C), testing and quality, but I came up pretty empty handed.

So I reached out to my network and was able to get some great tips, which I am happy to share below!

Let me know if a conference is missing!

@coderbyheart
coderbyheart / matrix.js
Last active Sep 28, 2021
Matrix Code micro:bit
View matrix.js
let frame = 0
let drops: { col: number, row: number }[] = []
let addDrops = 3
let pauseDuration = 100
// Press A: Make animation slower
input.onButtonPressed(Button.A, function () {
pauseDuration *= 1.1
})
View arch-linux-intel-compute-stick.md
@coderbyheart
coderbyheart / headline-fixer.mjs
Created Dec 16, 2020
Fixes RST headline lenghts
View headline-fixer.mjs
import glob from "glob";
import { promises as fs } from "fs";
let changed = false;
Promise.all(
glob.sync("./**/*.rst").map((s) =>
fs.readFile(s, "utf-8").then((rst) => {
const lines = rst.split("\n");
lines.forEach((line, n) => {
@coderbyheart
coderbyheart / mocha-coverage-es6.md
Last active Nov 16, 2020
Code coverage with Mocha and ES6 code
View mocha-coverage-es6.md

// package.json

{
  "scripts": {
    "test": "mocha --require babel-polyfill --compilers js:babel-register --reporter=dot --timeout=1350 test/\\*\\*/\\*.js",
    "test:coverage": "NODE_ENV=nyc babel src --out-dir instrumented-src && nyc --reporter=text-summary --reporter=lcov npm run test",
  },
  "devDependencies": {
 "babel-cli": "^6.18.0",
@coderbyheart
coderbyheart / device-ci.txt
Last active Sep 28, 2020
device ci job result
View device-ci.txt
{
"job": {
"id": "5c5f3ef3-2bf4-4017-80ef-ff84dab19a3b",
"document": {
"fw": "https://github.com/bifravst/firmware/releases/download/v3.0.0/cat-tracker-Thingy91-ltem-debug-v3.0.0.hex"
},
"status": {
"status": "SUCCEEDED",
"statusDetails": {
"status": "success"
View heads.js
const dirs = ["UP", "DOWN", "LEFT", "RIGHT"];
const max = 20;
const interval = 2500;
let i = 0;
console.time("heads");
const r = setInterval(() => {
const n = Math.floor(Math.random() * dirs.length);
console.timeLog("heads", ++i, dirs[n]);
@coderbyheart
coderbyheart / espruino.js
Created Aug 29, 2020
espruino temperature controlled fan on Thingy:52
View espruino.js
const threshold = 26.5;
const interval = 10;
let currentTemp;
let isOff;
function setLEDS(l1,l2,l3) {
digitalWrite(LED1, l1);
digitalWrite(LED2, l2);
digitalWrite(LED3, l3);
}
@coderbyheart
coderbyheart / espruino-temp-relay.js
Created Aug 28, 2020
espruino temperature controlled relay
View espruino-temp-relay.js
var dht = require("DHT22").connect(A1);
const threshold = 25;
const interval = 10;
let currentTemp = 0;
// LEDs off
LED1.write(false);
LED2.write(false);