This file contains hidden or 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 React,{useEffect} from "react"; | |
// importing aos | |
import AOS from 'aos'; | |
import 'aos/dist/aos.css'; | |
export default function MyFunctionalComponent() { | |
useEffect(() => { | |
AOS.init(); | |
}, []) | |
return ( |
This file contains hidden or 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 React, { Component } from 'react' | |
// importing aos | |
import AOS from 'aos'; | |
import 'aos/dist/aos.css'; | |
export default class MyClassComponent extends Component { | |
componentDidMount() { | |
AOS.init(); | |
} | |
render() { |
This file contains hidden or 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 sys | |
def find_index(arr, n): | |
maximum_element = max(arr) #3 | |
global prime | |
#prime = [i for i in range(maximum_element + 1)] | |
if len(prime) < maximum_element+1: #2>4 | |
difference = (maximum_element +1) - len(prime) #4-2 = 2 | |
prime += [True] * difference | |
p = (maximum_element +1) - len(prime) | |
#prime[0] = False |
This file contains hidden or 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 Calculate(){ | |
var height = document.getElementById("h-input").value; | |
var weight = document.getElementById("w-input").value; | |
var result = parseFloat(weight) /(parseFloat(height)/100)**2; | |
if(!isNaN(result)){ | |
document.getElementById("bmi-output").innerHTML = result; | |
if(result < 18.5){ | |
document.getElementById("bmi-status").innerHTML = "Underweight"; |
This file contains hidden or 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
*{margin: 0; padding: 0;font-family: 'Old Standard TT', serif;} | |
.container{ | |
display: grid; | |
justify-content: center; | |
align-content: center; | |
min-height: 100vh; | |
grid-template-columns: 30vw; | |
grid-template-rows: repeat(3,10vh) 5vh repeat(2,10vh); | |
grid-gap: 10px; | |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
<link rel="stylesheet" href="main.css"> | |
<script src="script.js" defer></script> | |
<link rel="preconnect" href="https://fonts.gstatic.com"> |
NewerOlder