CppDegRad
An example of using C++11's user-defined literals to enforce consistent units of measure. Defines two classes - Radians and Degrees - which implicitly convert between each other, and can be used to prevent mismatching units in 3D graphics APIs.
Install / Use
/learn @grahamboree/CppDegRadREADME
DegRad
Example of using user-defined literals and implicit conversions to enforce units of measure in the C++ type system. Example usage can be found in degrad.cpp and for more information on the rationale and design, see this blogpost.
Released under the MIT license. See LICENSE for more details.
Related Skills
node-connect
353.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
353.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
353.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
