Skip to content

Instantly share code, notes, and snippets.

View Dahausa's full-sized avatar
💭
I may be slow to respond.

Joern Dahausa

💭
I may be slow to respond.
  • Germany
View GitHub Profile
@Dahausa
Dahausa / Dockerfile
Last active December 28, 2025 18:17
Dockerfile creating a Jupyter Image with a Sysml v2 Jupyter Kernel (based on the official installation routine)
# Dockerfile for a sysml v2 Jupyter environment using Jupyter Lab
FROM quay.io/jupyter/base-notebook:latest AS sysmlbase
WORKDIR /home/jovyan/sysmlv2
USER root
#Install Java as prerequisite for the Sysml v2 Jupyter Kernel
RUN apt-get update -y && apt-get install -y --no-install-recommends openjdk-21-jre wget
@Dahausa
Dahausa / new 1.js
Created March 16, 2021 09:57
Gist from API Documentation Editor
import { Point } from 'yfiles';
// Create a new point
const p1 = new Point(-5, 2)
// Create another point somewhere else
const p2 = new Point(23, 42)
console.log(`Point 1 is at (${p1.X},${p1.Y}), point 2 is at (${p2.X},${p2.y})`)
// Subtract one point from the other to get a vector between them