Skip to content

Instantly share code, notes, and snippets.

View remisharrock's full-sized avatar

remisharrock

View GitHub Profile
<!--
* make sure to update the id of the answer div and also the data-answerid for the button, both must match to link the button to the answer
* If you are using more than one of these in a page, then make to have a unique id for each answer and then copy that to the corresponding data-boxid attribute.
For example this show answer has an id of -> "answer1" note that the button's data-boxid is also 'answer1'
* If button name includes "Show" or "Hide" these two words toggle between each other when the button is clicked.
e.g. if the button text is set to "Show Answer" then it will toggle to "Hide Answer" once the user clicks on the button.
#include <stdio.h>
int main() {
//! showArray(lettres, cursors=[t])
//! showArray(tailles, cursors=[i])
int nbMots = 0;
char lettres[11];
int tailles[10];//ex: tailles[5] : nombre de mots de 5 lettres dans le texte
for(int i = 0; i < 10; i++){
tailles[i]=0;
}
#include <stdio.h>
#define METRES_PAR_PIED .3048
#define LIVRES_PAR_GRAMME .002205
#define FAHRENHEIT_PAR_CELSIUS 1.8
#define ZERO_CELSIUS_EN_FAHRENHEIT 32
double metresVersPieds(double metres)
{
return metres / METRES_PAR_PIED;
@remisharrock
remisharrock / avidsen.md
Created January 18, 2020 17:27
testing avidsen

on the device (off): one press on the button : from OFF (no led) to "orange led" (confort), here is the log:

12:51:32.973 [TRACE] [ternal.transceiver.EnOceanTransceiver] - Received Sync Byte 12:51:32.998 [TRACE] [ternal.transceiver.EnOceanTransceiver] - >> Received header, data length 8 optional length 7 packet type 1 12:51:33.011 [DEBUG] [ternal.transceiver.EnOceanTransceiver] - RADIO_ERP1 with RORG VLD for 0586A922 payload D20A010586A922B000019E657E3400 received 12:51:33.028 [DEBUG] [ernal.handler.EnOceanBaseThingHandler] - ESP Packet payload D20A010586A922B0 for 0586A922 received

one press : from "orange led" (confort) to "green led" (eco I guess?)

17:00:40.929 [DEBUG] [ernal.handler.EnOceanBaseThingHandler] - polling channels
17:00:40.937 [DEBUG] [ternal.transceiver.EnOceanTransceiver] - Enqueue new send request with ESP3 type RADIO_ERP1 without callback
17:00:40.944 [DEBUG] [ternal.transceiver.EnOceanTransceiver] - Sending data, type RADIO_ERP1, payload D209FF90570400010586A922FF00
17:00:40.952 [TRACE] [ternal.transceiver.EnOceanTransceiver] - Sending raw data: 55000707017AD209FF90570400010586A922FF0009
17:00:40.974 [TRACE] [ternal.transceiver.EnOceanTransceiver] - Received Sync Byte
17:00:40.980 [DEBUG] [ternal.transceiver.EnOceanTransceiver] - Enqueue new send request with ESP3 type RADIO_ERP1 without callback
17:00:40.984 [TRACE] [ternal.transceiver.EnOceanTransceiver] - >> Received header, data length 1 optional length 0 packet type 2
17:00:40.987 [DEBUG] [ternal.transceiver.EnOceanTransceiver] - Enqueue new send request with ESP3 type RADIO_ERP1 without callback
17:00:40.998 [DEBUG] [ternal.transceiver.EnOceanTransceiver] - RESPONSE with code RET
@remisharrock
remisharrock / bonjour.json
Created December 10, 2021 17:25
learn git branching bonjour testing
{
"branches": {
"main": {
"remoteTrackingBranchID": null,
"remote": false,
"target": "C2",
"id": "main",
"type": "branch"
}
},