Skip to content

Instantly share code, notes, and snippets.

View ahmaddidiks's full-sized avatar
🎯
Focusing

Ahmad Didik Setiyadi ahmaddidiks

🎯
Focusing
View GitHub Profile
@ahmaddidiks
ahmaddidiks / diffbot_system.cpp
Created September 13, 2023 15:58 — forked from renderedSafe/diffbot_system.cpp
ROS2 Control Demos diffbot hardware interface publisher. Useful for micro-ROS hardware control.
// Copyright 2021 ros2_control Development Team
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
@ahmaddidiks
ahmaddidiks / 0-PY-SQLITE-TABLE.MD
Created August 20, 2023 04:59 — forked from code-boxx/0-PY-SQLITE-TABLE.MD
Python Display SQLite Data In HTML Table

PYTHON DISPLAY SQLITE DATA IN HTML TABLE

https://code-boxx.com/sqlite-data-html-table-python-flask/

NOTES

  1. Run unpack.bat (Windows) unpack.sh (Linux/Mac). This will automatically:
    • Create a templates folder, move S3_users.html inside.
    • Create a static folder, move S3_users.css inside.
    • Create a virtual environment - virtualenv venv.
    • Activate the virtual environment - venv\scripts\activate (Windows) venv/bin/activate (Mac/Linux)
  • Install Flask - pip install flask
@ahmaddidiks
ahmaddidiks / mqtt_ssl_idf.ino
Created January 16, 2023 07:36 — forked from gmag11/mqtt_ssl_idf.ino
Secure MQTT connection to broker with ESP32 and internal IDF mqtt client library
#include "Arduino.h"
#include <WiFi.h>
#include "esp_log.h"
#include "esp_system.h"
#include "esp_event.h"
#include "mqtt_client.h"
#define SECURE_MQTT // Comment this line if you are not using MQTT over SSL
#ifdef SECURE_MQTT