Skip to content

Instantly share code, notes, and snippets.

@gorenje
gorenje / move_visible_layers_to_layer_group.py
Last active February 24, 2023 20:11
Gimp 2.10 python plugin for moving all visible layers into an existing or new layer group
import os
from gimpfu import *
def _rec(layers, lst):
for l in lst:
if not l.visible: continue
if pdb.gimp_item_is_group(l): _rec(layers,l.layers)
else: layers.append(l)
@gorenje
gorenje / Dockerfile
Last active February 18, 2021 15:30
Running Jupyter with SysML in a Docker container
FROM openjdk:17-slim
RUN apt-get --quiet --yes update && apt-get install -yqq \
emacs \
wget
WORKDIR /root
##
## Miniconda installation page:
@gorenje
gorenje / 95-orphans.html
Created April 21, 2023 12:58
Node-RED node for showing orphan nodes
<script type="text/javascript">
RED.nodes.registerType('Orphans',{
color: '#e5e4ef',
icon: "subflow.svg",
category: 'Writer Map Tools',
paletteLabel: "Orphans",
defaults: {
name: {
value:"",
},
@gorenje
gorenje / seeker.html
Last active April 27, 2023 12:38
Seeker and Sink nodes for Node-RED
<script type="text/javascript">
RED.nodes.registerType('Seeker',{
color: '#e5e4ef',
icon: "subflow.svg",
category: 'Writer Map Tools',
paletteLabel: "Seeker",
defaults: {
name: {
value:"",
},
@gorenje
gorenje / flow.json
Last active November 12, 2024 17:05
Example of Node-RED flow embeded in a page
[{"id":"be2109bba90b6c5a","type":"tab","label":"[I2C] Scroll pHAT","disabled":false,"info":"::: aim\n\nTo control a [Scroll pHAT](https://github.com/pimoroni/scroll-phat) board from [Pimoroni](https://learn.pimoroni.com/). The idea is to use the [i2c bus](https://en.wikipedia.org/wiki/I%C2%B2C) to control the board.\n\nThe Scroll pHAT board being used is the simplest 5 by 11 LED with a single brightness setting for all pixels.\n\n:::\n\n::: palette\n\n- [node-red-contrib-i2c](https://flows.nodered.org/node/node-red-contrib-i2c)\n- [node-red-dashboard](https://flows.nodered.org/node/node-red-dashboard)\n\n:::\n\n### Requirements\n\nThere are several descriptions on setting up the i2c bus on a Raspberry Pi:\n\n- [i2c-bus documentation ay i2c-bus package](https://github.com/fivdi/i2c-bus/blob/master/doc/raspberry-pi-i2c.md)\n- [the install script for the Scroll pHAT](https://get.pimoroni.com/scrollphat) was helpful\n\nI used a Raspberry Pi Model 4 for doing this, your mileage might vary.\n\n### Background\n\nThe
@gorenje
gorenje / Legal Notices.txt
Last active December 11, 2024 11:36
Legal Notice found on iPhones & iPads containing many Open Source licenes and authors