This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use client' | |
import React, { useState, useEffect } from "react"; | |
import { motion, useAnimation, useMotionValue, useTransform } from "framer-motion"; | |
import Image from "next/image"; | |
import { RightArrow } from "../globals/Icons"; | |
const images = []; | |
for (let i = 1; i <= 14; i++) { | |
images.push(import(`@/assets/quick-carousel/${i}.webp`).then(module => module.default)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use client'; | |
import Image from 'next/image'; | |
import React, { useEffect, useState } from 'react'; | |
import { HomeIcon , ProjectsIcon, ExperienceIcon, BehanceIcon, Behance} from './Icons'; | |
import { MagneticBackgroundTab } from './MagneticBackgroundTab'; | |
export const Header = () => { | |
const [isSticky, setIsSticky] = useState(false); | |
useEffect(() => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use client'; | |
import { useRotateYValues } from "@/utils/customHooks"; | |
import { motion, useMotionValue } from "framer-motion"; | |
import { useState } from "react"; | |
import { AI, Motion, Gears, Code, Cube } from "../globals/Icons"; | |
const ITEMS = [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use client' | |
import { AnimatePresence, motion } from "framer-motion"; | |
import Image from "next/image"; | |
import React, { useState, useEffect, useRef } from "react"; | |
import { copyToClipboard } from "@/utils/Copy"; | |
import { DockDemo } from "../ContactMe/DockDemo"; | |
export default function FixedDrawer() { | |
const refMenu = useRef(null); | |
const [openMenu, setOpenMenu] = useState(false); | |
const [Copied, setCopied] = useState(false); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use client'; | |
import Image from 'next/image'; | |
import { Drawer } from 'vaul'; | |
import { RightArrow } from '../Icons'; | |
export function DrawerComponent() { | |
return ( | |
<Drawer.Root shouldScaleBackground> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body> | |
<div style="filter: blur(1px);pointer-events:none;position:fixed;min-width:100%;margin-top:0;height:180%;top:50%;left:50%;transform:translateX(-50%) translateY(-50%);z-index:0;opacity:0.3"> | |
<div style="border-radius:99999px;position:absolute;top:50%;left:50%;width:100vw;min-width:1000px;height:100vh;transform:translate(-50%, -50%) scale(0.6);overflow:hidden"> | |
<div class="ColorBlobs_SpinningGradient__DpGtx" style="position:absolute;top:50%;left:50%;width:100vw;height:100vw;transform:translate(-50%, -50%)" | |
animation: ColorBlobs_spin__CbrXa 8s linear infinite; | |
background: conic-gradient(from 0deg, #08f, #f60, #bbffa1, #4c00ff, #ab2666, #09f); | |
></div> | |
</div></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use client'; | |
import { useEffect, useRef, useState } from 'react'; | |
export const LazyLoad = ({ children }) => { | |
const [isVisible, setIsVisible] = useState(false); | |
const ref = useRef(); | |
useEffect(() => { | |
const observer = new IntersectionObserver( | |
([entry]) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
from collections import defaultdict | |
# readign nodes data from nodes.csv | |
def read_nodes(file): | |
with open(file, 'r', encoding='utf-8') as f: | |
lines = f.readlines()[1:] # Skip header | |
nodes = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function solveFirstOrderODE() | |
function dydx = myODE(x, y) | |
dydx = -2 * x * y; %lets say dy/dx=−2xy | |
end | |
% Define the range of x values | |
xspan = [0 5]; % Define the start and end values of x | |
% Define the initial condition y(x0) = y0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const nodemailer = require('nodemailer'); | |
const fs = require('fs'); | |
// Create a transporter using Gmail SMTP | |
const transporter = nodemailer.createTransport({ | |
service: 'Gmail', | |
auth: { | |
user: 'ramadanebrahim791@gmail.com', // Your Gmail address | |
pass: 'your Application-specific password here', // Your Application-specific password | |
}, |
NewerOlder