Skip to content

Instantly share code, notes, and snippets.

View Galiold's full-sized avatar

Ali Goldani Galiold

View GitHub Profile
@Galiold
Galiold / gpa_calculator.py
Last active April 10, 2021 12:44
An script to calculate total and last year GPA given the grade log from Ferdowsi University of Mashhad.
# First do pip install beautifulsoup4 pandas
from bs4 import BeautifulSoup
import pandas as pd
import os
with open('edu_log.html', 'r', encoding='utf8') as file:
contents = file.read()
soup = BeautifulSoup(contents, 'html.parser')
import socket
import ssl
def receive_print(ss):
response = b''
while True:
recv = ss.recv(1024)
if not recv:
break
@Galiold
Galiold / main.c
Last active March 18, 2019 22:19
//#include <stm32f3xx_hal.h>
////For delay
//void SysTick_Handler(void)
//{
// HAL_IncTick();
//}