Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Desktop/random/Hactober/question1.py
Original file line number Diff line number Diff line change
@@ -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<r*2:
print("YES")
else:
print("NO")
135 changes: 135 additions & 0 deletions Documents/random/space/assignment/ROCKET.css
Original file line number Diff line number Diff line change
@@ -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;
}
}
Empty file.
55 changes: 55 additions & 0 deletions Documents/random/space/assignment/script.js
Original file line number Diff line number Diff line change
@@ -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();