Skip to content

Instantly share code, notes, and snippets.

View hansheng0512's full-sized avatar
🏠
Working from home

Han Sheng hansheng0512

🏠
Working from home
View GitHub Profile
@hansheng0512
hansheng0512 / POSTRequest.ino
Last active August 20, 2021 13:37
NodeMCU POST Request
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <ESP8266HTTPClient.h>
const char *ssid = "wheatgrass"; // SSID
const char *password = "01032021.sky"; // Password
void setup() {
Serial.begin(9600); // Starting Serial Terminal
@hansheng0512
hansheng0512 / country.json
Created August 15, 2021 08:26
Country Name List in Json
[
{
"name": "Afghanistan",
"code": "AF"
},
{
"name": "Åland Islands",
"code": "AX"
},
{
@hansheng0512
hansheng0512 / haar_cascade_opencv.py
Last active July 17, 2021 03:12
Haar Cascades Implementation in OpenCV
# Importing all required packages
import cv2
import numpy as np
import matplotlib.pyplot as plt % matplotlib inline
# Read in the cascade classifiers for face and eyes
face_cascade = cv2.CascadeClassifier('../DATA / haarcascades / haarcascade_frontalface_default.xml')
eye_cascade = cv2.CascadeClassifier('../DATA / haarcascades / haarcascade_eye.xml')