Skip to content

Instantly share code, notes, and snippets.

View JayeshTiwari03's full-sized avatar
🎯
Focusing

Jayesh Tiwari JayeshTiwari03

🎯
Focusing
  • EY
  • Bharat/India
  • 13:03 (UTC +05:30)
View GitHub Profile
function toggleTheme() {
var element = document.body;
element.classList.toggle("dark");
}
.dark {
background-color: hsl(199.2,89.8%,11.6%);
color: hsl(0,0%,94.9%);
}
@JayeshTiwari03
JayeshTiwari03 / index.html
Created January 17, 2021 06:56
input box
<input
type="checkbox"
onclick="toggleTheme()"
/>
@JayeshTiwari03
JayeshTiwari03 / index.html
Created January 8, 2020 19:39
Tribute Page FCC - Lilly Singh
<main id="main">
<h1 id="title">Lilly Singh</h1>
<p> The woman who inspired a million women</p>
<figure id="img-div">
<img id="image" src="https://i.ytimg.com/vi/-HHup8PkAK0/maxresdefault.jpg" alt="Lilly Singh giving a motivational speech" />
<figcaption id="img-caption">Lilly Singh (IISuperwomanII) speaks at #Youth2030</figcaption> </figure>
<section id="tribute-info">
<h3 id="headline">Here's a time line of Lilly Singh life:</h3>
@JayeshTiwari03
JayeshTiwari03 / BattleshipGame.py
Created March 8, 2018 12:55
Battleship game created in Codecademy Python Course
from random import randint
board = []
for x in range(0, 5):
board.append(["O"] * 5)
def print_board(board):
for row in board:
print " ".join(row)
#!/bin/python3
from random import randint
player = input("rock, paper or scissor")
print(player, "vs", end=' ')
chosen = randint(1, 3)
if chosen == 1:
@JayeshTiwari03
JayeshTiwari03 / AgeInput.py
Created February 27, 2018 07:24
Python Blocks Exercises(trinket.io)
age = input("What us your age?")
age = int(age) * int(7)
print ("Your age in dog years will be", age, "years")
num = int(input("Please choose a number to divide: "))
listRange = list(range(1,num+1))
divisorList = []
for number in listRange:
if num % number == 0:
divisorList.append(number)
a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
num = int(input("Choose a number: "))
new_list = []
for i in a:
if i<num:
new_list.append(i)
print (new_list)
@JayeshTiwari03
JayeshTiwari03 / Odd_Even.py
Created February 22, 2018 14:04
Odd or Even
num = int(input("Give me a number"))
if num %2==0:
print ("Even")
else:
print ("Odd")
if num%4==0:
print ("Mult of 4")
else:
print ("Normal Number")