- Create repository on
github.com
- Add the remote (do not use
set-url
, ratherdelete
and thenadd
) including your username:git remote add origin https://<username>@github.com/<name>/<repo>.git
- Create an access token with scope Contents Read and Write (and if you want to work with workflows also Workflows Read and Write) via https://github.com/settings/tokens?type=beta
- Use
git config push.autoSetupRemote true
git push
, then enter the PAT
This file contains 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
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}") | |
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",
This file contains 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
toggle_keyboard_layout.sh | |
Mod4+I |
This file contains 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 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], |
This file contains 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
// (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> |
This file contains 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
/** | |
* 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 |
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
pip install ipympl
in Ipython/VSCode Interactive Window use
%matplotlib widget
This file contains 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
# %% | |
# Application that displays data on a map and allows to modify the data in a | |
# callback triggered by a button. | |
# | |
# Note: This application must not be executed using multiple workers, but only | |
# single-threaded (i.e. run with `python <name>`). | |
# See https://dash.plotly.com/sharing-data-between-callbacks for the reason. | |
import dash |
NewerOlder