Skip to content

Instantly share code, notes, and snippets.

View ahmaddidiks's full-sized avatar
🎯
Focusing

Ahmad Didik Setiyadi ahmaddidiks

🎯
Focusing
View GitHub Profile
@code-boxx
code-boxx / 0-PY-SQLITE-TABLE.MD
Last active October 7, 2023 06:00
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
@renderedSafe
renderedSafe / diffbot_system.cpp
Last active April 18, 2025 12:00
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,
@honey-speaks-tech
honey-speaks-tech / CPlusPlusResources.md
Last active April 22, 2025 09:39
Deep dive into C++
@gmag11
gmag11 / mqtt_ssl_idf.ino
Last active January 11, 2025 08:10
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
@gperrudin
gperrudin / gist:e2b0bf09622dea09647d
Created July 8, 2015 10:13
Running shell scripts from Golang
cmdStr := "thumbnail.sh " + url
cmd := exec.Command("/bin/sh", "-c", cmdStr)
_, err := cmd.Output()
if err != nil {
println(err.Error())
return
}
@bradley219
bradley219 / .gitignore
Last active March 31, 2025 16:42
PID C++ implementation
.DS_Store