Skip to content

Instantly share code, notes, and snippets.

View fbaeuerlein's full-sized avatar

Florian Bäuerlein fbaeuerlein

  • Freelancing Software Developer
  • Bavaria, Germany
View GitHub Profile
@fbaeuerlein
fbaeuerlein / .clang-format
Last active September 4, 2020 07:40
My favorite .clang-format settings
---
Language: Cpp
# BasedOnStyle: LLVM
AccessModifierOffset: -2
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: Right
AlignOperands: true
AlignTrailingComments: true
@fbaeuerlein
fbaeuerlein / .clang-tidy
Last active June 9, 2024 10:52
A general clang-tidy configuration file
---
Checks: 'clang-diagnostic-*,clang-analyzer-*,cppcoreguidelines-*,modernize-*,-modernize-use-trailing-return-type'
WarningsAsErrors: true
HeaderFilterRegex: ''
AnalyzeTemporaryDtors: false
FormatStyle: google
CheckOptions:
- key: cert-dcl16-c.NewSuffixes
value: 'L;LL;LU;LLU'
- key: cert-oop54-cpp.WarnOnlyIfThisHasSuspiciousField
@ast
ast / Stepcraft420-GRBLized.md
Created June 8, 2018 10:13
Stepcraft 420 CNC settings with GRBLizer

Stepcraft 420 CNC settings with GRBLizer

My notes on getting GRBL v1.1 working with the GRBLizer board.

Setup

  • Stepcraft 420 CNC
  • Stepcraft drivers with GRBLizer board
  • GRBL v1.1
@gocarlos
gocarlos / Eigen Cheat sheet
Last active July 3, 2024 07:33
Cheat sheet for the linear algebra library Eigen: http://eigen.tuxfamily.org/
// A simple quickref for Eigen. Add anything that's missing.
// Main author: Keir Mierle
#include <Eigen/Dense>
Matrix<double, 3, 3> A; // Fixed rows and cols. Same as Matrix3d.
Matrix<double, 3, Dynamic> B; // Fixed rows, dynamic cols.
Matrix<double, Dynamic, Dynamic> C; // Full dynamic. Same as MatrixXd.
Matrix<double, 3, 3, RowMajor> E; // Row major; default is column-major.
Matrix3f P, Q, R; // 3x3 float matrix.