Skip to content

Instantly share code, notes, and snippets.

View HadiElnemr's full-sized avatar
🎯
Focusing

Hadi Elnemr HadiElnemr

🎯
Focusing
View GitHub Profile
<!DOCTYPE html>
<!-- saved from url=(0064)https://cms.guc.edu.eg/apps/student/CourseViewStn?id=2505&sid=58 -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>
</title><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta http-equiv="Content-Language" content="en"><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, shrink-to-fit=no"><meta name="description" content="This is an example dashboard created using build-in elements and components."><meta name="msapplication-tap-highlight" content="no"><link href="./CourseViewStn_files/main.87c0748b313a1dda75f5.css" rel="stylesheet">
<style>
.app-header__logo .logo-src {
background: url(/template/theme/assets/images/guc_logo_og.png);
background-repeat: no-repeat;
width:118px;
@HadiElnemr
HadiElnemr / ESP2.ino
Last active August 4, 2021 13:05
ESP with Serial monitor controlling and sending 0/1
#include <ESP8266WiFi.h> // Include the Wi-Fi library
#include <WiFiUdp.h>
const char *ssid = "ESP8266"; // The name of the Wi-Fi network that will be created
const char *password = "00000000"; // The password required to connect to it, leave blank for an open network
WiFiUDP Udp;
unsigned int localUdpPort = 4210; // local port to listen on
char incomingPacket[255]; // buffer for incoming packets
char replyPacket[] = "Hi there! Got the message :-)"; // a reply string to send back
@HadiElnemr
HadiElnemr / ESP1.ino
Last active August 4, 2021 13:03
ESP having controlled LED
#include <ESP8266WiFi.h> // Include the Wi-Fi library
#include <WiFiUdp.h>
const char *ssid = "ESP8266"; // The name of the Wi-Fi network that will be created
const char *password = "00000000"; // The password required to connect to it, leave blank for an open network
WiFiUDP Udp;
unsigned int localUdpPort = 4210; // local port to listen on
char incomingPacket[255]; // buffer for incoming packets
char replyPacket[] = "Hi there! Got the message :-)"; // a reply string to send back
clear, clc
num = [11.11 0 0];
den = [1 0 -9.81/11.11];
plant = tf(num,den);
kp=65;
ki=1.4;
kd=280;
PID = pid(kp,ki,kd)
ol = series(plant, PID)
cl = feedback(ol,1)
// Hadi Elnemr 46-6804 T-54 Mechatronics Lab Evaluation 8
#define F_CPU 16000000
#define __AVR_ATmega328P__
#include <avr/io.h>
#include <util/delay.h>
void init_adc(void) { // AREF 0, channel 0.
ADMUX &= ~(1 << REFS0 | 1 << REFS1 | 1 << ADLAR | 1 << MUX0 | 1 << MUX1
| 1 << MUX2 | 1 << MUX3);
ADCSRA |= 1 << ADEN;
DIDR0 |= 0xFF;
// Hadi Elnemr 46-6804 T-54 Mechatronics Lab Evaluation 6
#define F_CPU 16000000
#include <avr/io.h>
#include <util/delay.h>
void init_adc(void) { // AREF 0, channel 0.
ADMUX &= ~(1 << REFS0 | 1 << REFS1 | 1 << ADLAR | 1 << MUX0 | 1 << MUX1
| 1 << MUX2 | 1 << MUX3);
ADCSRA |= 1 << ADEN;
#!usr/bin/python3
import requests, re, csv
from bs4 import BeautifulSoup as sp
main_url = "https://commits.top/egypt.html"
r = requests.get(main_url)
soup = sp(r.content, 'html.parser')
table = soup.findAll('td')
gucians = []
# print(table)
with open('test1.csv','w' , newline='') as file: