Skip to content

Instantly share code, notes, and snippets.

@vikkey321
vikkey321 / beautiful.rest.api.docs.in.markdown.md
Created July 24, 2023 08:51 — forked from azagniotov/beautiful.rest.api.docs.in.markdown.md
Example to create beautiful REST API docs in Markdown, inspired by Swagger API docs.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="Vikkey" content="Vivek Gupta & IoTMonk">
<meta http-equiv="Access-Control-Allow-Origin" content="*">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
@vikkey321
vikkey321 / control_led_esp12e_local.ino
Created December 12, 2019 14:56
Control LED on ESP12E using in localhost
#include <ESP8266WiFi.h>
const char* ssid = "your SSID or hotspot or wifi name";
const char* password = "password of hotspot or wifi or ssid";
// Create an instance of the server
// specify the port to listen on as an argument
WiFiServer server(80);
void setup() {
#include <ESP8266WiFi.h>
#include "DHT.h"
#define DHTPIN D1
#define DHTTYPE DHT11
const char* ssid = "your SSID or hotspot or wifi name";
const char* password = "password of hotspot or wifi or ssid";
// Create an instance of the server
// now.pde
// Prints a snapshot of the current date and time along with the UNIX time
// Modified by Andy Wickert from the JeeLabs / Ladyada RTC library examples
// 5/15/11
#include <Wire.h>
#include "DS3231.h"
RTClib RTC;
int pinA = 3;
int pinB = 4;
int encoderPosCount = 0;
int pinALast;
int aVal;
boolean bCW;
void setup()
{
//SET pinA and pinB and input
//Program to scan the i2c Addresses of the connected devices
#include <Wire.h>
void setup()
{
Wire.begin();
Serial.begin(9600);
while (!Serial);
#include <Wire.h>
#include "DS3231.h"
#include <SD.h>
#include <SPI.h>
File sdcard_file;
int CS_pin = 10;
//RTC Data
//Program to print all the sensor data
#include <Wire.h>
#include "DS3231.h"
//RTC Data
RTClib RTC;
String complete_date;
String complete_time;
float sab;
//Code to test the SD card Module. Please refer circuit diagram for wiring
#include <SD.h>
#include <SPI.h>
File myFile;
int pinCS = 53;
void setup() {