Skip to content

Instantly share code, notes, and snippets.

View JayantGoel001's full-sized avatar
♠️
If I lose it all, slip and fall, I will never look away.

Jayant Goel JayantGoel001

♠️
If I lose it all, slip and fall, I will never look away.
View GitHub Profile
@JayantGoel001
JayantGoel001 / C++.code-snippets
Last active October 7, 2024 10:35
Basic Syntax & Snippet of C++ for Competitive Programming for VS Code.
{
"Basic Syntax for C++": {
"scope": "cpp",
"prefix": "cpp",
"body": [
"#include<bits/stdc++.h>",
"using namespace std;",
"",
"#define int long long int",
"#define double long double",
@JayantGoel001
JayantGoel001 / easing.js
Created November 25, 2021 08:50 — forked from gre/easing.js
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {
// no easing, no acceleration
linear: t => t,
// accelerating from zero velocity
easeInQuad: t => t*t,
// decelerating to zero velocity
@JayantGoel001
JayantGoel001 / Weather Forecast.py
Created June 14, 2021 02:58
Forecasting Weather using requests and wttr
import requests
city = input("Enter The Name of City:\n")
url = 'https://wttr.in/' + city
response = requests.get(url)
print(response.text)
@JayantGoel001
JayantGoel001 / Internet Speed.py
Created May 7, 2021 13:46
Check Internet Speed using Python and speedtest-cli
from speedtest import Speedtest
st = Speedtest()
download = st.download()
upload = st.upload()
print("Download Speed is", download)
print("Upload Speed is", upload)
@JayantGoel001
JayantGoel001 / Google Search using Python.py
Created May 7, 2021 12:36
Google Search using python and pywhatkit
import pywhatkit as kt
target = input("Search Google or type a URL")
kt.search(target)
@JayantGoel001
JayantGoel001 / codeforces.py
Created May 2, 2021 16:50 — forked from mishraprakhar11/codeforces.py
For both Win/Linux OS.
#If you system lacks any module, install it by help of google.
#further details in blog.
from sys import argv
import urllib2
import json
import time
import easygui
script , friends = argv
txt = open(friends).read()
@JayantGoel001
JayantGoel001 / automate chat messengers.py
Created April 9, 2021 04:30
Automate Chat Messenger using pyautogui
import pyautogui
from time import *
text = 'Apple a day keeps doctor away.'
counter = 5
while counter:
sleep(5)
pyautogui.typewrite(text)
sleep(1)
@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())
@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 / 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: