Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<model xmlns="http://www.opengroup.org/xsd/archimate/3.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengroup.org/xsd/archimate/3.0/ http://www.opengroup.org/xsd/archimate/3.1/archimate3_Diagram.xsd" identifier="id-496a56122dee4048980577fcc7841767">
<name xml:lang="en">test</name>
<elements>
<element identifier="id-ca47c957ab224e2b88e6c16aceda216d" xsi:type="DataObject">
<name xml:lang="en">Insurance Policy Data</name>
</element>
<element identifier="id-f6ee1a5f1aca4728867c6deae008ab2a" xsi:type="DataObject">
<name xml:lang="en">Customer File Data</name>
</element>
@ThomasRohde
ThomasRohde / space.py
Last active March 10, 2025 10:09
A Textual-based interactive terminal application t...
# /// script
# description = 'A Textual-based interactive application to visualize file sizes in a user-selected directory'
# authors = [
# 'Script-Magic AI Generator',
# ]
# date = '2023-11-10'
# requires-python = '>=3.9'
# dependencies = [
# 'textual>=0.40.0'
# ]
@ThomasRohde
ThomasRohde / ascii.py
Last active March 10, 2025 10:09
This script converts input text into ASCII art usi...
# /// script
# description = 'A Python program that converts input text to ASCII art'
# authors = [
# 'Script-Magic AI Generator',
# ]
# date = '2023-11-10'
# requires-python = '>=3.9'
# dependencies = [
# 'pyfiglet>=0.8.post1',
# ]
@ThomasRohde
ThomasRohde / breakout.py
Last active March 7, 2025 03:28
A colorful implementation of the classic Breakout ...
# /// script
# description = 'A colorful Pygame implementation of the classic Breakout game with paddle, ball, and bricks'
# authors = [
# 'Script-Magic AI Generator',
# ]
# date = '2023-11-01'
# requires-python = '>=3.9'
# dependencies = [
# 'pygame>=2.0.0',
# ]
@ThomasRohde
ThomasRohde / snake.py
Last active March 10, 2025 10:09
This script implements a snazzy version of the cla...
# /// script
# description = 'A snazzy game of Snake with two AI-controlled snakes competing'
# authors = [
# 'Script-Magic AI Generator',
# ]
# date = '2024-07-14'
# requires-python = '>=3.9'
# dependencies = [
# 'pygame>=2.1.0',
# ]
@ThomasRohde
ThomasRohde / ticker.py
Last active March 7, 2025 03:28
A FastAPI application that allows users to input a...
# /// script
# description = 'A FastAPI application that serves a snazzy and interactive stock plot for a given ticker symbol.'
# authors = [
# 'Script-Magic AI Generator',
# ]
# date = '2023-11-27'
# requires-python = '>=3.9'
# dependencies = [
# 'fastapi>=0.68.0',
# 'uvicorn',
@ThomasRohde
ThomasRohde / snazzy.py
Last active March 10, 2025 10:09
Test program to exercise the capabilities of the '...
# /// script
# description = "Test program to exercise the capabilities of the 'rich' package"
# authors = ["Script-Magic AI Generator"]
# date = "2023-10-06"
# requires-python = ">=3.9"
# dependencies = [
# "rich>=10.0.0",
# ]
# tags = ["rich", "testing", "terminal"]
# ///
@ThomasRohde
ThomasRohde / process.py
Last active March 10, 2025 10:09
Load a JSON file from the command line and estimat...
# /// script
# description = "Load a JSON file from the command line and estimate its schema."
# authors = ["Script-Magic AI Generator"]
# date = "2023-10-07"
# requires-python = ">=3.9"
# dependencies = [
# "jsonschema"
# ]
# tags = ["json", "schema", "data analysis"]
# ///
@ThomasRohde
ThomasRohde / mapping.json
Last active March 10, 2025 10:09
SM Tool Script Mapping File
{
"scripts": {
"process": {
"gist_id": "36183cd7507c849f71efdd91cc503439",
"created_at": "2025-03-02T05:18:02.215617",
"prompt": "Load a JSON {{file}} from the command line and assuming it is an array of objects use best effort to estimate the schema and output the schema to the command line",
"description": "Load a JSON file from the command line and estimate its schema.",
"tags": [
"json",
"schema",
@ThomasRohde
ThomasRohde / gist:aeebabd74785d0e1586eb0f59f7edeb0
Created January 26, 2025 06:13
Model of enterprise architecture
[
{
"id": "8cd59c4b-9262-42b4-810e-dcdd523cf1f7",
"name": "Enterprise Architecture",
"capability": 0,
"description": "### Enterprise Architecture\n\nIn a large enterprise, the **Enterprise Architecture (EA)** capability acts as a crucial bridge between business strategy and its execution through technology. It provides a holistic view of the enterprise, encompassing business processes, information, applications, and technology infrastructure, ensuring alignment and enabling effective decision-making.\n\n**Value Proposition:**\n\nThe EA capability delivers value by:\n\n* **Enabling Strategic Alignment:** Ensuring IT investments directly support business goals and objectives.\n* **Driving Business Agility:** Facilitating faster responses to market changes and new opportunities through flexible and adaptable systems.\n* **Optimizing IT Efficiency:** Reducing redundancy, complexity, and costs through standardization and consolidation of IT assets.\n* **Mitigating Risk:** Identifying and