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
#include <exception> | |
#include <fmt/format.h> | |
#include <map> | |
#include <source_location> | |
#include <string> | |
std::string locationFull(const std::source_location location = std::source_location::current()) { | |
return fmt::format("{}:{} in {}", location.file_name(), location.line(), location.function_name()); | |
} |
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
_object2 moveInGunner _object1; | |
_object38 moveInDriver _object37; | |
_object39 moveInTurret [_object37, [0]]; | |
_object41 moveInDriver _object40; | |
_object42 moveInTurret [_object40, [0]]; | |
_object44 moveInDriver _object43; | |
_object45 moveInTurret [_object43, [0]]; | |
_marker = createMarker ["_USER_DEFINED #571431103/27/1", [8735.48,13689.1,0]]; |
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
@echo off | |
SETLOCAL ENABLEDELAYEDEXPANSION | |
:: DEFINE the following variables where applicable to your install | |
SET A3BRANCH=233780 -beta creatordlc | |
:: For stable use 233780 -beta | |
:: For Dev use 233780 -beta development | |
:: Note, the missing qotation marks, these need to be wrapped around the entire "+app_data......" |
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
#include <boost/json.hpp> | |
#include <QDebug> | |
#include <QElapsedTimer> | |
#include <QFile> | |
#include "jsonic.c" | |
#include "jsonic.h" | |
#include "fmt/format.h" |
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
/* | |
To autostart | |
crontab -e | |
* * * * * cd "/wherever you put the file/" && ./FILE_NAME | |
(to kill use killall logger) | |
To compile you will need | |
i2c-tools |
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
#include <fmt/color.h> | |
#include <fmt/format.h> | |
#include <iostream> | |
struct X { | |
int id; | |
uint8_t r{1}; | |
uint8_t g{2}; | |
uint8_t b{3}; | |
}; |
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
#include "Arduino.h" | |
constexpr double thickPerTurn = 1200; | |
constexpr double wheelCircum = 0.09538 * 3.14159265359; //in meter | |
constexpr double ticksDistance = wheelCircum / thickPerTurn; | |
//write also wheel tick for debug and calibration | |
constexpr int LCDPrintTick = true; | |
//which pin to use for reset |
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
/* | |
To autostart | |
crontab -e | |
* * * * * cd "/wherever you put the file/" && ./FILE_NAME | |
*/ | |
#include "LPS22HB.h" | |
#include <bcm2835.h> | |
#include <math.h> |
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
<meta name="viewport" content="width=device-width, initial-scale=0.5"> | |
<style> | |
html,body { | |
text-size-adjust: none; | |
-webkit-text-size-adjust: none; | |
-moz-text-size-adjust: none; | |
-ms-text-size-adjust: none; | |
font-size:30px; | |
} |
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
#include "enum.h" //this is https://github.com/aantron/better-enums https://raw.githubusercontent.com/aantron/better-enums/master/enum.h | |
#include "fmt/format.h" | |
#include <fmt/ranges.h> //of course remember to link -lmft | |
#include <vector> | |
BETTER_ENUM(Channel, int, | |
Red = 1, | |
Green = 1 << 2, | |
Blue = 1 << 3, |