Skip to content

Instantly share code, notes, and snippets.

View officer47p's full-sized avatar
🗿

Peter(Parsa) Hosseini officer47p

🗿
View GitHub Profile
@officer47p
officer47p / EllipticCurve.go
Created June 28, 2025 17:37 — forked from LukaGiorgadze/EllipticCurve.go
Golang ECDSA (Elliptic Curve Digital Signature Algorithm) example, generate Private/Public key pairs, verify and test
package ec
import (
"crypto/ecdsa"
"crypto/elliptic"
"crypto/md5"
"crypto/rand"
"crypto/x509"
"encoding/pem"
"errors"
@officer47p
officer47p / hello_world.ino
Created December 14, 2024 00:21 — forked from buzzkillb/hello_world.ino
ESP32 TTGO button 1 and 2 masher with screen and serial example display
//simple button masher esp32 ttgo
#include <TFT_eSPI.h>
#include <SPI.h>
#define BUTTON1PIN 35
#define BUTTON2PIN 0
TFT_eSPI tft = TFT_eSPI();
void IRAM_ATTR toggleButton1() {