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
| #ifndef UT_SV_TO_NUM_HPP | |
| #define UT_SV_TO_NUM_HPP | |
| #include <charconv> | |
| #include <concepts> | |
| #include <optional> | |
| #include <string_view> | |
| #if __cplusplus < 202002L | |
| #error this file has to be compiled with at least C++20 | |
| #endif |
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
| #ifndef UT_PACK_LOOPS_HPP | |
| #define UT_PACK_LOOPS_HPP | |
| #if __cplusplus < 201'703L | |
| # error this file has to be compiled with at least C++17 | |
| #endif | |
| /* Usage: | |
| * std >= c++17 (c++20) | |
| * |
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
| # When given a conf file, will look for key "[key]" and print the non-blank, | |
| # lines until the next key or until the end of the file. | |
| # | |
| # All comments are removed as well as leading and trailing spaces | |
| # | |
| # Expects an input variable 'key' (can be passed using `awk -v key="your key here"`) | |
| # | |
| # | |
| # Example: | |
| # |
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
| #ifndef UT_DEFER_HPP | |
| #define UT_DEFER_HPP | |
| #if __cplusplus < 201'703L | |
| # error this file has to be compiled with at least C++17 | |
| #endif | |
| /* Usage: | |
| * std >= c++17 |
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
| #ifndef UT_PRINT_HPP | |
| #define UT_PRINT_HPP | |
| #if __cplusplus < 202'002L | |
| # error this file has to be compiled with at least C++20 | |
| #elif __cplusplus >= 202'302L && !defined(UT_PRINT_SUPPRESS_CXX_STD_WARNING) | |
| # warning use std::print instead, or define UT_PRINT_SUPPRESS_CXX_STD_WARNING to suppress this warning | |
| #endif | |
| /* Usage: |
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
| /* | |
| Format integers as binary numbers. Expects little endian numbers. | |
| License: See end of file | |
| */ | |
| /* Usage: | |
| * int i = 42; | |
| * printf("i = 0b" BIT_FMT32 "\n", BIT_ARG32(i)); | |
| * // Output: i = 0b00000000000000000000000000101010 |
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
| <!-- | |
| KDE synatx highlighting file for pseudocode (https://github.com/KDE/syntax-highlighting) | |
| Based on the Zig highlighting file (https://raw.githubusercontent.com/KDE/syntax-highlighting/master/data/syntax/zig.xml). | |
| Intended for use with pandoc, but will probably work with kate too | |
| --> | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE language [ | |
| <!ENTITY bin_int "(?:[01]+(?:_[01]+)*)"> | |
| <!ENTITY oct_int "(?:[0-7]+(?:_[0-7]+)*)"> |
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
| #!/bin/bash | |
| set -e | |
| # VERSION_LIST=("0.7.0" "0.7.1" "0.8.0" "0.8.1" "0.9.0" "0.9.1" "0.10.0" "0.10.1" "0.11.0" "master") | |
| VERSION_LIST=("0.9.1" "0.10.1" "0.11.0" "master") | |
| git clone https://github.com/zigtools/zls | |
| cd zls |
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
| --[[ | |
| See bottom of scrip for license | |
| Usage: | |
| --- | |
| header-includes: | | |
| \usepackage{todonotes} | |
| ... |
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
| --[[ | |
| Based on [this](https://stackoverflow.com/a/54130482) stack overfloaw answer which no longer works | |
| License: CC BY-SA 4.0 | |
| Usage: | |
| See Section [](#some-section-name) | |
| # Some section name |