Skip to content

Instantly share code, notes, and snippets.

View doevelopper's full-sized avatar

Adrien H doevelopper

  • Versailles
View GitHub Profile
@doevelopper
doevelopper / SerialAHL.md
Created May 9, 2024 12:38
I2C, SPI,RS232

In Object-Oriented Programming (OOP) with respect to the SOLID design pattern, you can abstract I2C, SPI, and RS232 communication by creating interfaces (abstract classes) for each communication protocol. The interfaces would define methods for reading and writing data, as well as setting up the communication parameters.Here's an example in C++, using the Boost.Asio library for non-blocking I/O:

#include <boost/asio.hpp>
  SwRS-ESC-001-[C|E|M|R|O]-nn-v, where:
    •	nn is the id number of the requirement. 
    •	v is the version of the requirement.
    •	Type of requirement
        o	Mandatory: Norm related requirement: Requirement must be implemented end tested 
        o	Required: Requirement must be implemented and tested
        o	Optional: Requirement may or may not be implemented
        o	Enhancement: Requirement is not required now, but may be in the future.
 o	Conditional;
Downloading and Extracting Packages:

Preparing transaction: done
Executing transaction: - 

    Installed package of scikit-learn can be accelerated using scikit-learn-intelex.
    More details are available here: https://intel.github.io/scikit-learn-intelex

    For example:
@doevelopper
doevelopper / lsbl.md
Created March 31, 2024 10:49
ro HDD on

Open a terminal and run

  lsblk --fs
NAME   FSTYPE   FSVER LABEL   UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
loop0  squashfs 4.0                                                      0   100% /snap/bare/5
loop1  squashfs 4.0                                                      0   100% /snap/core20/2105
@doevelopper
doevelopper / Dockerfile.md
Created January 21, 2024 11:21
Buildroot docker file ...
FROM ubuntu:22.04
MAINTAINER Adam Duskett <aduskett@gmail.com>

ENV DEBIAN_FRONTEND=noninteractive 
ENV TZ=US/Pacific

RUN set -e; \
  apt-get update; \
  apt-get install -y apt-utils; \

Cointreau

1/2 louche de sucre liquide (canadou)
1 louche de jus de citron jaune
1/2 louche de curaçao bleu
1 louche de Cointreau
1 bouteille de crémant brut
 
Variante perso : j'ajoute qq framboises congelées pour la déco et la fraicheur
@doevelopper
doevelopper / fleet.md
Created November 27, 2023 16:58
My c++ configuration files for Jetbrqains fleet
{
    "configurations": [
        {
            "type": "command",
            "name": "Create Build and Dependencies Directory",
            "program": "/opt/cmake/bin/cmake",
            "args": [
                "-E",
                "make_directory",
@doevelopper
doevelopper / FleetCppConfig.md
Created November 20, 2023 16:19
jetbrains fleet
{
    "configurations": [
        {
            "type": "command",
            "name": "Create Build and Dependencies Directory",
            "program": "/opt/cmake/bin/cmake",
            "args": [
                "-E",
                "make_directory",
@doevelopper
doevelopper / interview.md
Created November 10, 2023 11:38
interview on C++ reddit/cpp

C++ basics:

  • Difference between references and pointers?
  • Difference btw memory allocation in stack and on heap?
  • What kinds of smart points do exist?
  • How unique_ptr is implemented? How do we force that only one owner of the object exist in - unique_ptr ?
  • How does shared_ptr work? How reference counter is synchronized between objects?
  • Can we copy unique_ptr or pass it from one object to another?
  • what are rvalue and lvalue?
  • What are std::move and std::forward()
@doevelopper
doevelopper / raw.md
Last active October 26, 2023 20:39
raw character in c
https://stackoverflow.com/questions/24850244/does-c-support-raw-string-literals
-std=gnu11
https://learn.microsoft.com/en-us/cpp/cpp/string-and-character-literals-cpp?view=msvc-170
printf(R"(hello\nworld\n)");

#include <stdio.h>