Skip to content

Instantly share code, notes, and snippets.

@rmu75
rmu75 / UseMachineCRC.diff
Created January 17, 2025 09:44
patch to reintroduce "Use Machine CRC"
diff --git a/src/Mod/CAM/Gui/Resources/panels/DressUpLeadInOutEdit.ui b/src/Mod/CAM/Gui/Resources/panels/DressUpLeadInOutEdit.ui
index 5edf0b83fa..3229815d12 100644
--- a/src/Mod/CAM/Gui/Resources/panels/DressUpLeadInOutEdit.ui
+++ b/src/Mod/CAM/Gui/Resources/panels/DressUpLeadInOutEdit.ui
@@ -221,6 +221,13 @@
</property>
</spacer>
</item>
+ <item>
+ <widget class="QCheckBox" name="chkUseCRC">
@rmu75
rmu75 / .clang-format
Last active November 4, 2023 19:20
proposed clang format for linuxcnc
# Generated from CLion C/C++ Code Style settings
BasedOnStyle: LLVM
AccessModifierOffset: -4
AlignAfterOpenBracket: Align
AlignArrayOfStructures: Left
AlignConsecutiveAssignments: None
AlignOperands: DontAlign
AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: Always
@rmu75
rmu75 / arraytest.cc
Created October 29, 2020 11:10
C++ unique frozen sets proof of concept
#include <algorithm>
#include <iostream>
#include <type_traits>
#include <utility>
#include "frozen/set.h"
#include "frozen/string.h"
template<typename... Arrs>
constexpr auto concat(const Arrs&... arrs) {
@rmu75
rmu75 / FCInfo_en_Ver_1-21-rµ_Docked.FCMacro
Last active December 2, 2022 21:26 — forked from mario52a/FCInfo_en_Ver_1-30c-rmu_Docked.FCMacro
Gives a series of informations about the selected shape and can display a conversion of length, inclination (degrees, radians, grades, pourcent) shape, surface, volume and the weight of the form in the density selected in different units of quantities international and Anglo-Saxon. (English version)
# -*- coding: utf-8 -*-
"""
***************************************************************************
* Copyright (c) 2014 2015 2016 2017 2018 2019 <mario52> *
* *
* This file is a supplement to the FreeCAD CAx development system. *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License (LGPL) *
* as published by the Free Software Foundation; either version 2 of *