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
| /* | |
| * SPDX-License-Identifier: MIT | |
| * SPDX-FileCopyrightText: 2026, Roy Ratcliffe, Northumberland, United Kingdom | |
| */ | |
| /*! | |
| * \file va.h | |
| * \brief Header file for variadic argument counting macros. | |
| * \details This file contains macros for counting the number of variadic | |
| * arguments passed to a macro. It can count up to 63 arguments and returns the |
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
| # Download LVGL library using FetchContent (after project declaration) | |
| # See https://lvgl.io/docs/open/7.11/porting/project for more details on integrating LVGL into a project | |
| include(FetchContent) | |
| FetchContent_Declare(lvgl | |
| GIT_REPOSITORY https://github.com/lvgl/lvgl.git | |
| GIT_TAG master # or specify a specific tag or commit | |
| ) | |
| FetchContent_MakeAvailable(lvgl) |
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
| $paths = luarocks path | |
| if ($LASTEXITCODE -ne 0) { | |
| throw 'Failed to read LuaRocks paths.' | |
| } | |
| $lrBin = luarocks path --lr-bin | |
| if ($LASTEXITCODE -ne 0) { | |
| throw 'Failed to read the LuaRocks binary path.' | |
| } | |
| if ([string]::IsNullOrWhiteSpace($lrBin)) { |
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
| FROM mcr.microsoft.com/devcontainers/base:noble | |
| # The Microsoft dev container automatically makes the user `vscode`. | |
| # | |
| # ``` bash | |
| # vscode ➜ ~ $ id | |
| # uid=1000(vscode) gid=1000(vscode) groups=1000(vscode) | |
| # ``` | |
| # | |
| USER vscode |
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
| # /etc/systemd/network/80-can.link | |
| [Match] | |
| Type=can | |
| [Link] | |
| # Configure the transmit queue length for CAN interfaces. | |
| # Confirm the queue length using the `ip link show type can` command. | |
| TransmitQueueLength=10000 |
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
| obj-m += foo.o |
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
| # /etc/systemd/network/80-can.link | |
| [Match] | |
| Type=can | |
| [Link] | |
| TransmitQueueLength=10000 |
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
| # Ignore Python virtual environment directories. | |
| /.venv/ |
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
| cmake_minimum_required(VERSION 3.25) | |
| project(polyinterp) | |
| add_executable(polyinterp polyinterp.cpp) |
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
| --- Unique pairs. | |
| -- @module uniq | |
| -- @author Roy Ratcliffe <roy@ratcliffe.me> | |
| -- @copyright 2023, 2024 | |
| -- @license MIT | |
| local _M = {} | |
| local unpack = table.unpack or unpack -- Lua 5.1 compatibility | |
| --- Answers the next index and unique value. | |
| -- See [Semantics of the Generic `for`](https://www.lua.org/pil/7.2.html) for |
NewerOlder