Skip to content

Instantly share code, notes, and snippets.

@ovace
ovace / HeatMapByPropertyvalue.ajs
Created May 14, 2024 20:37 — forked from smileham/HeatMapByPropertyvalue.ajs
jArchi script to create Heatmap (set Red, Amber or Green background to element) based on the value of a given property. #jarchi
/*
* HeatMap by Property Value
*
* Requires jArchi - https://www.archimatetool.com/blog/2018/07/02/jarchi/
*
* Version 1: Set colour to red, amber or green based on value of given property.
* Version 2: Pull out all Properties used in Elements in view, present all possible values of that Property to assign RAG colours
* Version 3: Error handling and key generation
* Version 4: Updated for dynamic colour selection and support for more than 3 colours
* Version 5: If there are less than 5 values, buttons are used instead of the menu.
@ovace
ovace / ArchiSQLGenerator.ajs
Created May 14, 2024 20:36 — forked from gevaertw/ArchiSQLGenerator.ajs
#jarchi #ArchiSQLGenerator
/*
The goal is that a user creates a pattern on a view. Based on that pattern a SQL query is created to analyse the entire model for that view.
The model must be in a database created with herve database plugin (Link) This is very powerfull to analyse the model using SQL and by further extention BI tools like PowerBI
Check https://gevaertw.wordpress.com/generating-sql-queries-for-the-archi-database for more info
*/
//
//-------------------------- Script Settings --------------------------------------------------------------
// to set language comment or uncomment
@ovace
ovace / ColorElements.ajs
Created May 14, 2024 20:35 — forked from robkamp/ColorElements.ajs
#jArchi Color the selected elements with web safe colors
// Author: Rob Kamp
// Requires: jArchi - https://www.archimatetool.com/blog/2018/07/02/jarchi/
// Purpose: Color the selected elements with web safe colors
// Date: 2019-11-20
// Version 1.1
// Change: changed the title to add the #jArchi tag
console.log("Start: Color the selected elemets");
// Web safe colors
@ovace
ovace / Merge multiple concepts (and delete others).ajs
Created May 14, 2024 20:34 — forked from jbsarrodie/Merge multiple concepts (and delete others).ajs
#jArchi script to merge multiple concepts (and delete others)
// Merge multiple concepts (and delete others)
//
// Requires jArchi - https://www.archimatetool.com/blog/2018/07/02/jarchi/
//
// This script merges multiple concepts (and delete others)
//
// Version 1.1 (2020/01/20) Add an option to keep only the content of the "target" concept
// Version 1.0 (2019/11/12) First version published
//
// Known limitation: works only on elements, not relationships
@ovace
ovace / Delete unused elements and relationships.ajs
Last active May 14, 2024 20:34 — forked from jbsarrodie/Delete unused elements and relationships.ajs
#jArchi scripts to delete any element (or relationship) not used in at least one view
// Delete unused elements and relationships
//
// Requires jArchi - https://www.archimatetool.com/blog/2018/07/02/jarchi/
//
// This script will delete any element or relationship not used in at least one view
//
// (c) 2020 Jean-Baptiste Sarrodie
var response = window.confirm("This script will delete any element or relationship not used in at least one view. Continue?");
@ovace
ovace / Insert Labels of Related Elements.ajs
Created May 14, 2024 20:34 — forked from timolaine/Insert Labels of Related Elements.ajs
Insert Labels of Related Elements in Archi
@ovace
ovace / AlignSpread.ajs
Created May 14, 2024 20:32 — forked from yveszoundi/AlignSpread.ajs
#jArchi script to align and spread components
// Author: Yves Zoundi
// Requires: jArchi - https://www.archimatetool.com/blog/2018/07/02/jarchi/
// Purpose: Align to lowest, spread the selected elements horizontally or vertically
// Date: 2024-05-10
// Version 0.0.1
// Change: Initial version based on similar previous jArchi scripts on GitHub
console.clear()
console.show()
console.log("START: AlignSpread")
@ovace
ovace / ExportToOWL.ajs
Created May 14, 2024 20:30 — forked from nfigay/ExportToOWL.ajs
This #jArchi script export the content of a selected model as an OWL2 file.
/*
* ArchiMate Model export as OWL2 file
* Author: Nicolas Figay 2021
* Version: 0.1
* This script creates a vis.js graph
*/
console.log("Export to Ontology Web Language");
load(__DIR__ + "lib/archimate.js");
/
# API Design Patterns And Use Cases
This document lists various useful patterns for API design. We encourage API developers to consider the following patterns as a guide while designing APIs for services.
### Document Semantics, Formatting, and Naming
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC 2119](https://www.ietf.org/rfc/rfc2119.txt).
@ovace
ovace / Livingroom.flow
Created May 26, 2021 01:05 — forked from happytm/Livingroom.flow
Node-Red RPIEasy Home Automation Flow
{
"id": "567d64ec.2661bc",
"label": "Livingroom",
"nodes": [
{
"id": "98b02e48.6b436",
"type": "switch",
"z": "567d64ec.2661bc",
"name": "Livingroom",
"property": "topic",