pip install ipympl
in Ipython/VSCode Interactive Window use
%matplotlib widget
pip install ipympl
in Ipython/VSCode Interactive Window use
%matplotlib widget
git clone https://github.com/aim42/aim42.git
cd aim42
docker run -it -v $(pwd):/documents/ asciidoctor/docker-asciidoctor
asciidoctor --doctype book -a imagesdir=../resources/images -a icons=font -a toc=left -a sectlink=true -a sectanchors=true -a numbered=true, -a source-highlighter=coderay -a coderay-css=class -a stylesheet=aim42.css -a stylesdir=../resources/css/ -a version=0.8.0 -a data-uri=true --out-file a.html --source-dir src/main/asciidoc/ src/main/asciidoc/index.adoc
Note: data-uri will include the image content in the HTML; see here.
Directly create the epub via
| /** | |
| * Demo of how to use a unique_ptr with a custom allocator. | |
| * | |
| * Unlicensed 2021 kopp | |
| * | |
| * This is free and unencumbered software released into the public domain. | |
| * | |
| * Anyone is free to copy, modify, publish, use, compile, sell, or | |
| * distribute this software, either in source code form or as a compiled | |
| * binary, for any purpose, commercial or non-commercial, and by any |
| // (c) 2021 kopp, MIT licensed | |
| // see https://en.cppreference.com/w/cpp/language/coroutines | |
| // works with g++ 11.1 with -std=c++20 | |
| #include <coroutine> | |
| #include <iostream> | |
| #include <string> |
| import numpy as np | |
| from scipy.interpolate import interp1d, splprep, splev, CubicHermiteSpline | |
| import matplotlib.pyplot as plt | |
| pts = np.array( | |
| [ | |
| [-846724, 0], | |
| [-423362, 10029], | |
| [0, 13942], | |
| [289000, 14733], |
| toggle_keyboard_layout.sh | |
| Mod4+I |
Install extension https://github.com/microsoft/vscode-arduino
Create a .vscode/settings.json file, that makes sure, that the C/C++ extension is enabled.
(By default, I use the clangd extension for intellisense.)
{
"C_Cpp.intelliSenseEngine":"default",
"C_Cpp.autocomplete": "default",
github.comset-url, rather delete and then add) including your username: git remote add origin https://<username>@github.com/<name>/<repo>.gitgit config push.autoSetupRemote truegit push, then enter the PAT| cmake_minimum_required(VERSION 3.31.0) | |
| project(build_with_ninja CXX) | |
| set(CMAKE_GENERATOR "Ninja" CACHE INTERNAL "" FORCE) | |
| message("generator is set to ${CMAKE_GENERATOR}") | |