Skip to content

Instantly share code, notes, and snippets.

View folkengine's full-sized avatar
😈
Living in interesting times.

Christoph folkengine

😈
Living in interesting times.
View GitHub Profile
@folkengine
folkengine / general_contract.md
Last active August 26, 2024 17:30
general_contract.md

ALTHOUGH Object is a concrete class, it is designed primarily for extension. All of its nonfinal methods (equals, hashCode, toString, clone, and finalize) have explicit general contracts because they are designed to be overridden. It is the responsibility of any class overriding these methods to obey their general contracts; failure to do so will prevent other classes that depend on the contracts (such as HashMap and HashSet) from functioning properly in conjunction with the class.

Excerpt From Chapter 3 Effective Java 3 Edition Joshua Bloch

general contracts

@shankari & @james-ctc I will have to respectively disagree with your comments concerning operators against Domain entities that are only used in unit tests should also be placed under the testing directory.

@folkengine
folkengine / smartcharging_breakdown.md
Last active July 22, 2024 14:32
smart_charging_breakdown

2.0.1 Charging Profile

struct ChargingProfile {
    int32_t id;
    int32_t stackLevel;
    ChargingProfilePurposeEnum chargingProfilePurpose;
    ChargingProfileKindEnum chargingProfileKind;

    std::vector<ChargingSchedule> chargingSchedule; // 1..3
$> clone https://github.com/US-JOET/everest-demo 
$> cd everest-demo 
$> git checkout branch couryrr/updating-dockerfile-for-testing
$> cd manager
$> docker build --platform linux/amd64 -t ghcr.io/everest/everest-demo/manager:0.0.12 .
$> docker-compose -f docker-compose.automated-tests.yml up
  • Open linux env

To start with I am using Multipass.

Install Host Packages

https://docs.yoctoproject.org/brief-yoctoprojectqs/index.html#build-host-packages

$> sudo apt install gawk wget git diffstat unzip texinfo gcc build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 python3-sphinx libegl1-mesa libsdl1.2-dev python3-subunit mesa-common-dev zstd liblz4-tool file locales libacl1
@folkengine
folkengine / energy_reading_list.md
Last active September 11, 2024 13:18
Energy Reading List