This file contains 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 <string.h> | |
#include <stdbool.h> | |
// this was added for printing out for testing purposes... | |
#include <stdio.h> | |
unsigned char nibble(char c) | |
{ | |
if (c >= '0' && c <= '9') | |
return c - '0'; |
This file contains 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 <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
char* substring(const char *string, int position, int length) | |
{ | |
int c; | |
char *p = (char *)malloc(sizeof(char)*(length+1)); | |
if(p == NULL) |
This file contains 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
https://www.programmingsimplified.com/c/source-code/c-substring , gives a useful function | |
char* substring(const char *string, int position, int length) | |
{ | |
int c; | |
char *p = (char *)malloc(sizeof(char)*(length+1)); | |
if(p == NULL) | |
{ | |
printf("Unable to allocate memory.\n"); | |
exit(1); |
This file contains 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
WEBVTT | |
Lamari Lavarrette (DIF): | |
Hi Paul, how are you? This is Lamari. I'm the community manager here at DIF. | |
Paul Knowles: | |
Hi Lamari, nice to meet you. | |
Lamari Lavarrette (DIF): | |
Nice to meet you as well. Uhm...So, Kaliya should be getting on, uhm, in a minute here. .so.and we're just waiting here for other people to get on. |
This file contains 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
==32719== 1 errors in context 1 of 4: | |
==32719== Conditional jump or move depends on uninitialised value(s) | |
==32719== at 0x4C34996: strcat (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) | |
==32719== by 0x1174C2: mergeCharArray(int, unsigned char*, char*) (in /home/ubuntu/Downloads/blinky_utils/.pio/build/native/program) | |
==32719== by 0x117817: mergeCharArray_merge_a_char_array_Test::TestBody() (in /home/ubuntu/Downloads/blinky_utils/.pio/build/native/program) | |
==32719== by 0x14C231: void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (in /home/ubuntu/Downloads/blinky_utils/.pio/build/native/program) | |
==32719== by 0x146246: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (in /home/ubuntu/Downloads/blinky_utils/.pio/build/native/program) | |
==32719== by 0x128ADD: testing::Test::Run() (in /home/ubuntu/Downloads/blinky_ut |
This file contains 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
# https://chromium.googlesource.com/external/googletest/+/9855a87157778d39b95eccfb201a9dc90f6d61c6/make/Makefile?autodive=0 | |
# A sample Makefile for building Google Test and using it in user | |
# tests. Please tweak it to suit your environment and project. You | |
# may want to move it to your project's root directory. | |
# | |
# SYNOPSIS: | |
# | |
# make [all] - makes everything. | |
# make TARGET - makes the given target. | |
# make clean - removes all files generated by make. |
This file contains 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> | |
#include <SparkFun_ATECCX08a_Arduino_Library.h> /// the latest version of this library might work with the ESP32. so you do not need to use Blinky's *-aug26.h | |
#include <WiFi.h> | |
#include <WebSocketClient.h> | |
#include <Wire.h> | |
#include <concatenateArray.h> | |
#include <protected.h> | |
#include <websocketserver_config.h> // defines: path, host, and espport | |
#include <string> |
This file contains 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
~/Downloads/key-did-provider-p256Test-remote/lib$ node remote-matchDIDKeyWRemoteT2-getJWT-nl1.1.js | |
creates a valid JWT | |
checked with | |
~/Downloads/testNPMJose/lib$ node createJWT3.js |
This file contains 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
https://www.youtube.com/watch?v=KPesyRp8qqo | |
ESP8266 Unit Testing - Part 1/2: Unity Test Framework - Day 32 of #100DaysOfCode in IoT | |
ESP8266 Unit Testing - Part 2/2: GoogleTest and GoogleMock - Day 33 of #100DaysOfCode in IoT | |
https://www.youtube.com/watch?v=_xRv-3FWyLE | |
channel: https://www.youtube.com/@tomasztarnowski4434 | |
mentions https://embetronicx.com/tutorials/unit_testing/unit-testing-in-c-mock-using-cmock-in-embedded/ | |
This file contains 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
import { Signer } from 'did-jwt' | |
import { createJWS } from 'did-jwt' | |
import stringify from 'fast-json-stable-stringify' | |
import type { | |
AuthParams, | |
CreateJWSParams, | |
DIDMethodName, | |
DIDProviderMethods, | |
DIDProvider, | |
GeneralJWS, |