Skip to content

Instantly share code, notes, and snippets.

[
{
"$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json",
"name": "REST Connector",
"id": "io.camunda.connectors.HttpJson.v2",
"description": "Invoke REST API",
"version": 5,
"icon": {
"contents": "data:image/svg+xml;utf8,%3Csvg%20width%3D%2218%22%20height%3D%2218%22%20viewBox%3D%220%200%2018%2018%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M17.0335%208.99997C17.0335%2013.4475%2013.4281%2017.0529%208.98065%2017.0529C4.53316%2017.0529%200.927765%2013.4475%200.927765%208.99997C0.927765%204.55248%204.53316%200.947083%208.98065%200.947083C13.4281%200.947083%2017.0335%204.55248%2017.0335%208.99997Z%22%20fill%3D%22%23505562%22%2F%3E%0A%3Cpath%20d%3D%22M4.93126%2014.1571L6.78106%203.71471H10.1375C11.1917%203.71471%2011.9824%203.98323%2012.5095%204.52027C13.0465%205.04736%2013.315%205.73358%2013.315%206.57892C13.315%207.44414%2013.0714%208.15522%2012.5841%208.71215C12.1067%209.25913%2011.
@nikku
nikku / SEMANTIC_HTML_ELEMENTS.md
Last active August 31, 2021 09:31
Use semantic HTML elements - A short pitch

Use Semantic HTML Elements

TLDR

Understand the semantic elements that HTML offers and use them in favor of divs

Clickable <div />? Try not to do it, if it clearly is a UI control.

Consider: Not every element that is clickable must be a UI control but every click action needs to be accessible from a UI control.

@nikku
nikku / XSD_SCHEMA_VALIDATOR_DEBUGGING_UNDEBUGABLE.md
Created April 27, 2021 13:25
Learnings From Debugging the Undebugable - Do not compile Java, on the fly

Learnings From Debugging the Undebuggable

TLDR: Do NOT Compile Java on the Fly

Nico Rehwaldt


Context

@nikku
nikku / BIO_ES6_MIGRATE.sh
Created October 8, 2020 13:12
A supporting script to migrate the bpmn.io code base to ES6 features
#!/usr/bin/env bash
shopt -s globstar
# loop all files to perform transformation
for i in lib/**/*.js
do
echo "Processing $i"
# we need to replace occurences of default function exports, as lebab does not support them:
@nikku
nikku / XML_BPMN_IO.md
Created April 28, 2020 12:52
XML lightning talk brain dump

XML (vs HTML)

  • VALIDATED AGAINST XML SCHEMA (XSD)

Each element is attached to more or less wellknown (moddle/moddle-xml speak) namespace

Namespaces in BPMN (common) => We have our own schema for them (moddle descriptors)

  • BPMN
  • BPMNDI
@nikku
nikku / DMN_JS_DI.xml
Last active February 17, 2020 13:14
DMN_JS Diagram Interchange
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="https://www.omg.org/spec/DMN/20191111/MODEL/" xmlns:dmndi="https://www.omg.org/spec/DMN/20191111/DMNDI/" xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" id="Definitions_1" name="Definitions_1">
<decision id="Decision_1" name="Decision_1" />
<dmndi:DMNDI>
<dmndi:DMNDiagram id="DMNDiagram_0docyxs">
<dmndi:DMNShape id="DMNShape_1gx1owo" dmnElementRef="Decision_1">
<dc:Bounds height="80" width="180" x="100" y="100" />
</dmndi:DMNShape>
</dmndi:DMNDiagram>
</dmndi:DMNDI>
@nikku
nikku / DMN_TCK_IMPROVE_CONTEXT_REPRESENTATION.md
Last active January 9, 2020 09:39
DMN TCK PRPOSAL - Improve Test Result Context Representation

Proposal: Improve Test Result Context Representation

It's currently harder than it should be to interpret the test results in the DMN TCK.

Context

The following expected test result

@nikku
nikku / BPMN_JS_BUNDLE_SIZES.md
Last active August 17, 2019 09:50
bpmn-js bundle sizes
@nikku
nikku / CAMUNDA_MODELER_PLUGIN.js
Created August 1, 2019 13:52
For Linus USE ONLY
import { React, ReactDOM, Fill, registerBpmnJSPlugin } from 'camunda-modeler-plugin-helpers';
function BpmnModelerPlugin(eventBus, tabContext) {
class AppPlugin extends React.Component {
constructor(props) {
super(props);
this.tabContext = props.tabContext;
@nikku
nikku / screencapture
Last active June 27, 2019 19:40
The last screen capture script you'll ever need.
#!/bin/bash
TMP_NAME=$(mktemp -u ~/Downloads/capture.XXXXXX)
TMP_AVI="${TMP_NAME}.avi"
TMP_GIF="${TMP_NAME}.gif"
TMP_GIF_OPTIMIZED="${TMP_NAME}_optimized.gif"
print_usage()
{