Skip to content

Instantly share code, notes, and snippets.

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

Mahdi codepediair

🏠
Working from home
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@codepediair
codepediair / movie-recommendation.ipynb
Created March 23, 2023 10:22
Movie Recommendation.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@codepediair
codepediair / TruthOrDare.py
Created April 3, 2023 08:34
truth or dare game with python
import json
from urllib.request import urlopen
import random
def print_logo(): printline("""Truth or Dare""")
def printline(msg): print(f"\n{msg}\n")
class Color:
import requests
from bs4 import BeautifulSoup
from datetime import date as mydate
from datetime import datetime as mydatetime
import os, pytz, datetime, re
import time as mytime
def swap_positions(list, pos1, pos2):
list[pos1], list[pos2] = list[pos2], list[pos1]
codes = {
'A': '.-',
'B': '-...',
'C': '-.-.',
'D': '-..',
'E': '.',
'F': '..-.',
'G': '--.',
'H': '....',
'I': '..',
@codepediair
codepediair / script.js
Created July 8, 2023 07:05
Theme Toggler with javascript and css simple code
const darkModeToggle = document.getElementById("darkModeToggle");
// Listen for a click event on the toggle button
darkModeToggle.addEventListener("click", function () {
// Toggle the dark mode class on the body element
document.body.classList.toggle("dark-mode");
// Store the user's preference in localStorage
if (document.body.classList.contains("dark-mode")) {
localStorage.setItem("darkMode", "enabled");
@codepediair
codepediair / index.html
Created September 8, 2023 12:18
Awsome Download button
<button type="button" class="icon">
<div class="cloud">
<div class="puff puff-1"></div>
<div class="puff puff-2"></div>
<div class="puff puff-3"></div>
<div class="puff puff-4"></div>
<div class="puff puff-5"></div>
<div class="puff puff-6"></div>
<div class="puff puff-7"></div>
<div class="puff puff-8"></div>
@codepediair
codepediair / index.html
Created September 11, 2023 10:43
new slide Show
<div class="heading">Scroll to see more</div>
<div class="swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide">
<div class="container-general">
<div class="gallery-wrap wrap-effect-1">
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
@codepediair
codepediair / index.html
Created September 21, 2023 14:44
awsome menubar
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>CodePen - Magic Navigation Menu Indicator</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<!-- partial:index.partial.html -->
@codepediair
codepediair / app.py
Created September 21, 2023 14:47
onthisDay
import streamlit as st
import requests
from datetime import datetime
now = datetime.now()
month = now.month
day = now.day