Skip to content

Instantly share code, notes, and snippets.

View aboueleyes's full-sized avatar
🍉

Ibrahim Abou Elenein aboueleyes

🍉
View GitHub Profile
@avuong19
avuong19 / README.md
Created June 19, 2022 08:53
Regex Tutorial: Matching an email

Regex Tutorial: Matching an email

This is a tutorial about Regex, or regular expression. What is Regex? Regex is a string of text that helps us create patterns in order to search for text. The following document will walk you through how to use Regex to match an email address.

Summary

We will use this Regex below for this example

/^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/
#!/usr/bin/python3.9
from random import randint
import matplotlib.pyplot as plt
from signal import SIGINT, signal
MAX = 9500009900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
counts = []
@amir-awad
amir-awad / getGucians.py
Created May 9, 2021 08:56
Using python => a script to collect the data of the most active gucians on github in Egypt.
#/usr/bin/python3
from bs4 import BeautifulSoup
import requests
import pandas
source1 = requests.get( 'https://commits.top/egypt.html').text
soup = BeautifulSoup(source1, 'lxml')
name = []
#!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:
import requests
import os
from tqdm import tqdm
from bs4 import BeautifulSoup
gucians = []
page_URL = 'https://commits.top/egypt.html'
r = requests.get(page_URL)
soup = BeautifulSoup(r.content, "html.parser")
@aboueleyes
aboueleyes / pres.py
Created April 25, 2021 22:58
Generate PDF files
#!/usr/bin/env python3
import os
file_name = 'template.tex'
with open(file_name, "w") as file_object:
file_object.write('\documentclass{beamer}\n')
file_object.write('\\usetheme{focus}\n')
file_object.write('\\begin{document}\n')
images = os.listdir('img')
text = []