From 372717ad6f51023afd66ab5fec2563079a77cfb6 Mon Sep 17 00:00:00 2001 From: mishtiagrawal02-cloud Date: Wed, 29 Oct 2025 20:19:54 +0530 Subject: [PATCH 1/3] Check for Intersection Between Two Circles with Same Radii --- Desktop/random/Hactober/question1.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Desktop/random/Hactober/question1.py diff --git a/Desktop/random/Hactober/question1.py b/Desktop/random/Hactober/question1.py new file mode 100644 index 0000000..62102a0 --- /dev/null +++ b/Desktop/random/Hactober/question1.py @@ -0,0 +1,7 @@ +x1,y1,x2,y2,r=map(int,input().split()) +a=(x2-x1)**2 +b=(y2-y1)**2 +if (a+b)**0.5==r*2 or (a+b)**0.5 Date: Wed, 19 Nov 2025 11:25:56 +0530 Subject: [PATCH 2/3] Refactor: Improve code quality with constants, helper functions, and JSDoc comments --- Documents/random/space/assignment/script.js | 55 +++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 Documents/random/space/assignment/script.js diff --git a/Documents/random/space/assignment/script.js b/Documents/random/space/assignment/script.js new file mode 100644 index 0000000..bfed298 --- /dev/null +++ b/Documents/random/space/assignment/script.js @@ -0,0 +1,55 @@ + +/** + * SAST Rocket Launch Countdown Timer + * Displays a live countdown to the scheduled rocket launch date + */ + +const LAUNCH_DATE = new Date('2025-12-01T18:00:00'); +const TIME_UNITS = { + DAY: 1000 * 60 * 60 * 24, + HOUR: 1000 * 60 * 60, + MINUTE: 1000 * 60, + SECOND: 1000 +}; + +/** + * Formats a number as a two-digit string with leading zero + * @param {number} num - The number to format + * @returns {string} Formatted number (e.g., "05") + */ +function formatTime(num) { + return String(num).padStart(2, '0'); +} + +/** + * Updates the countdown display every second + * Shows launch message when countdown reaches zero + */ +function updateCountdown() { + const now = new Date(); + const timeRemaining = LAUNCH_DATE - now; + + if (timeRemaining <= 0) { + // Countdown finished - show launch message + document.getElementById('countdown').style.display = 'none'; + document.getElementById('launchMsg').style.display = 'block'; + clearInterval(timerInterval); + return; + } + + // Calculate time units + const days = formatTime(Math.floor(timeRemaining / TIME_UNITS.DAY)); + const hours = formatTime(Math.floor((timeRemaining / TIME_UNITS.HOUR) % 24)); + const minutes = formatTime(Math.floor((timeRemaining / TIME_UNITS.MINUTE) % 60)); + const seconds = formatTime(Math.floor((timeRemaining / TIME_UNITS.SECOND) % 60)); + + // Update DOM elements + document.getElementById('days').textContent = days; + document.getElementById('hours').textContent = hours; + document.getElementById('minutes').textContent = minutes; + document.getElementById('seconds').textContent = seconds; +} + +// Initialize countdown timer +const timerInterval = setInterval(updateCountdown, 1000); +updateCountdown(); From 3341e3b3927158e2de5caf192259c1ca7be6b5f8 Mon Sep 17 00:00:00 2001 From: mishtiagrawal02-cloud Date: Wed, 19 Nov 2025 11:36:47 +0530 Subject: [PATCH 3/3] Add: HTML and CSS files for Rocket Launch Countdown UI with improved styling and responsiveness --- Documents/random/space/assignment/ROCKET.css | 135 ++++++++++++++++++ Documents/random/space/assignment/ROCKET.html | 0 2 files changed, 135 insertions(+) create mode 100644 Documents/random/space/assignment/ROCKET.css create mode 100644 Documents/random/space/assignment/ROCKET.html diff --git a/Documents/random/space/assignment/ROCKET.css b/Documents/random/space/assignment/ROCKET.css new file mode 100644 index 0000000..7b93634 --- /dev/null +++ b/Documents/random/space/assignment/ROCKET.css @@ -0,0 +1,135 @@ +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); + min-height: 100vh; + display: flex; + justify-content: center; + align-items: center; + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; +} + +.container { + background: rgba(255, 255, 255, 0.1); + backdrop-filter: blur(10px); + padding: 60px 40px; + border-radius: 20px; + text-align: center; + color: #fff; + box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37); + border: 1px solid rgba(255, 255, 255, 0.18); + max-width: 600px; + width: 100%; +} + +h1 { + font-size: 3rem; + margin-bottom: 10px; + font-weight: bold; + letter-spacing: 2px; + animation: glow 2s ease-in-out infinite; +} + +.subtitle { + font-size: 1.2rem; + margin-bottom: 40px; + opacity: 0.9; + font-weight: 300; +} + +.countdown { + display: flex; + justify-content: center; + align-items: center; + gap: 15px; + margin: 40px 0; + flex-wrap: wrap; +} + +.time-unit { + display: flex; + flex-direction: column; + align-items: center; +} + +.time-value { + font-size: 3.5rem; + font-weight: bold; + line-height: 1; + color: #ffd700; + text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); + min-width: 100px; +} + +.time-label { + font-size: 0.9rem; + margin-top: 10px; + opacity: 0.8; + font-weight: 500; + letter-spacing: 1px; + text-transform: uppercase; +} + +.separator { + font-size: 2.5rem; + font-weight: bold; + color: #ffd700; + margin: 0 5px; + opacity: 0.7; +} + +.launch-message { + font-size: 2.5rem; + color: #30ffb4; + font-weight: bold; + margin-top: 30px; + animation: pulse 1s ease-in-out infinite; +} + +@keyframes glow { + 0%, 100% { + text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); + } + 50% { + text-shadow: 0 0 20px rgba(255, 215, 0, 0.8); + } +} + +@keyframes pulse { + 0%, 100% { + opacity: 1; + transform: scale(1); + } + 50% { + opacity: 0.8; + transform: scale(1.05); + } +} + +@media (max-width: 768px) { + .container { + padding: 40px 20px; + } + + h1 { + font-size: 2rem; + } + + .time-value { + font-size: 2rem; + min-width: auto; + } + + .separator { + font-size: 1.5rem; + margin: 0 3px; + } + + .launch-message { + font-size: 1.5rem; + } +} diff --git a/Documents/random/space/assignment/ROCKET.html b/Documents/random/space/assignment/ROCKET.html new file mode 100644 index 0000000..e69de29