Skip to content

Instantly share code, notes, and snippets.

View sappo's full-sized avatar

Kevin Sapper sappo

  • Germany
View GitHub Profile
Flow to collect data and do some cosmetics for easy use
-------------------------------------------------------
[{"id":"da6359b0.b70c18","type":"inject","z":"b96f9c86.269df","name":"GetMaxStatus","topic":"","payload":"true","payloadType":"bool","repeat":"120","crontab":"","once":true,"x":120,"y":660,"wires":[["16dd8fcc.73ed4"]]},{"id":"dbd2c465.a601f8","type":"switch","z":"b96f9c86.269df","name":"MaxSwitch","property":"payload.rf_address","propertyType":"msg","rules":[{"t":"eq","v":"0c975a","vt":"str"},{"t":"eq","v":"0c9768","vt":"str"},{"t":"eq","v":"0c98bd","vt":"str"},{"t":"eq","v":"0c98c6","vt":"str"},{"t":"eq","v":"0ca84e","vt":"str"}],"checkall":"true","outputs":5,"x":110,"y":1020,"wires":[["375772aa.47842e","d030e6ae.5ebc68","6ed5536c.4198cc"],["989ccf5d.9275b","3fce1e5.18b1ae2","1daa2389.bb563c"],["172c3cd.16dd9c3","3d3c8b7a.85c824","8f9e6adb.389bd8"],["a0c89a54.b6cba8","4571c950.f02738","8e874b35.819328"],["3c78114d.c79cde","a1c4af3a.cd5a5","bb0f9d7e.78621"]]},{"id":"918d3397.bb1eb","type":"link out
@baig
baig / csv2table.hs
Last active November 27, 2023 14:27
A Pandoc filter that replaces Image links having *.csv extension with Pandoc Markdown Tables.
#!/usr/bin/env runhaskell
{-
The MIT License (MIT)
Copyright (c) 2015 Wasif Hasan Baig <pr.wasif@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
@wenkokke
wenkokke / rendertree.hs
Last active April 1, 2017 18:15
Pandoc filter which renders simple brace-delimited trees in codeblocks to LaTeX's Tikz-QTree...
#!/usr/bin/env runhaskell
-- cabal depedencies:
--
-- * containers
-- * pandoc-types
-- * uu-parsinglib
--
{-# LANGUAGE RankNTypes #-}
@jeromerobert
jeromerobert / pandoc-svg.py
Last active November 30, 2024 05:43
Pandoc filter to create PDF files from SVG
#! /usr/bin/env python
"""
Pandoc filter to convert svg files to pdf as suggested at:
https://github.com/jgm/pandoc/issues/265#issuecomment-27317316
"""
__author__ = "Jerome Robert"
import mimetypes
import subprocess