Skip to content

Instantly share code, notes, and snippets.

View AlexzPurewoko's full-sized avatar
🏢
Working from office

Alexzander Purwoko Widiantoro AlexzPurewoko

🏢
Working from office
View GitHub Profile
@AlexzPurewoko
AlexzPurewoko / simplest_compiler.js
Last active October 27, 2023 09:13
Just a simple and small compiler for math operation. Still incomplete and needs add further operation
//////////////////////////////// FRONT - END COMPILER
// scan tokens
function scan(sourceCode) {
const tokens = sourceCode.split(' ')
return tokens
}
const INT_TOKEN = 1
const OPERATION_TOKEN = 2
@AlexzPurewoko
AlexzPurewoko / esp12f_mqtt_client.ino
Last active December 8, 2023 05:26
ESP32 MQTT PubSub Client With Display Screen (ST7789)
#include <Adafruit_GFX.h>
#include <Adafruit_ST7789.h>
#define TFT_DC D1 // GPIO 5
#define TFT_RST D2 // GPIO 4
#define TFT_CS -1
#include <ESP8266WiFi.h>
#include <PubSubClient.h>