This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |