Skip to content

Instantly share code, notes, and snippets.

@JayantGoel001
JayantGoel001 / Progress Bar.py
Created January 9, 2021 21:32
Creating A Progress Bar using tqdm
from tqdm import tqdm, trange
import time
for i in tqdm(range(10)):
time.sleep(1)
for i in trange(10):
time.sleep(1)
@JayantGoel001
JayantGoel001 / Currency Converter.py
Created January 9, 2021 21:32
Creating A Currency Converter using forex_python
# pip install forex-python
from forex_python.converter import CurrencyCodes, CurrencyRates
from forex_python.bitcoin import BtcConverter
codes = CurrencyCodes()
l = ['INR', 'USD']
for i in l:
name = codes.get_currency_name(i)
symbol = codes.get_symbol(i)
@JayantGoel001
JayantGoel001 / Wikipedia.py
Created January 13, 2021 17:40
Get Information related to a topic from Wikipedia using pywhatkit
import pywhatkit as kt
topics = ["C++", "Python 3"]
text = {}
for topic in topics:
text[topic] = kt.info(topic, 4)
print(topic)
@JayantGoel001
JayantGoel001 / Indian Flag.py
Created January 26, 2021 16:30
Created Indian Flag using turtle and python
from turtle import Turtle, done
flag = Turtle()
flag.speed(3)
flag.pensize(5)
flag.color("#000080")
def draw(x, y):
@JayantGoel001
JayantGoel001 / Set Public visibility of an Organization.html
Last active January 18, 2022 13:14
Set Public Visibility of An Organization by putting Your GitHub Personal Token, your Username, and the Organization Name.
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Set Public Visibility Of An Organization.</title>
</head>
<body>
<script type="module">
import { Octokit } from "https://cdn.skypack.dev/@octokit/core"
const octokit = new Octokit({ auth: `<------Put Here Your GitHub Personal Access Token----->` });
@JayantGoel001
JayantGoel001 / Video To Audio.py
Created February 11, 2021 15:31
Convert Video to Audio using moviepy
from moviepy import editor
video = editor.VideoFileClip("GIF.mp4") # Put Video Path
audio = video.audio
file_name = str(audio.filename).split('.')[0]
audio.write_audiofile(file_name+".mp3")
print("==========Succesfully Converted==========")
@JayantGoel001
JayantGoel001 / Auto Typing.py
Created February 11, 2021 15:34
Auto typing using pyautogui
import pyautogui
pyautogui.typewrite('Hello World', interval=0.25)
@JayantGoel001
JayantGoel001 / Rainbow Design.py
Created February 11, 2021 15:48
Creating A Rainbow Design using turtle
import turtle as t
t.speed(5)
t.bgcolor('black')
r, g, b = 255, 0, 0
for i in range(255 * 2):
t.colormode(255)
if i < 255 // 3:
@JayantGoel001
JayantGoel001 / Dino Game Hack.md
Created April 9, 2021 04:28
Chrome Dino Game Hack

Chrome Dino Game Hack

Method 1 without Internet

  1. Launch Chrome with no internet.
  2. Type Anything in search bar and press enter.
  3. Now, Open Inspect tab by right click and selecting inspect tab or press "ctrl+shift+i"
  4. Click on the console tab
  5. At last type the following Command
@JayantGoel001
JayantGoel001 / Country Information.py
Created April 9, 2021 04:30
Get Information of Any Country using countryinfo python package
from countryinfo import CountryInfo
name = "India"
country = CountryInfo(name)
print(country.alt_spellings())
print(country.capital())
print(country.currencies())
print(country.languages())