- Launch Chrome with no internet.
- Type Anything in search bar and press enter.
- Now, Open Inspect tab by right click and selecting inspect tab or press "ctrl+shift+i"
- Click on the console tab
- At last type the following Command
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
Show hidden characters
{ | |
"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", |
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
/* | |
* 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 |
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 requests | |
city = input("Enter The Name of City:\n") | |
url = 'https://wttr.in/' + city | |
response = requests.get(url) | |
print(response.text) |
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
from speedtest import Speedtest | |
st = Speedtest() | |
download = st.download() | |
upload = st.upload() | |
print("Download Speed is", download) | |
print("Upload Speed is", upload) |
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 pywhatkit as kt | |
target = input("Search Google or type a URL") | |
kt.search(target) |
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
#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() |
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 pyautogui | |
from time import * | |
text = 'Apple a day keeps doctor away.' | |
counter = 5 | |
while counter: | |
sleep(5) | |
pyautogui.typewrite(text) | |
sleep(1) |
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
from countryinfo import CountryInfo | |
name = "India" | |
country = CountryInfo(name) | |
print(country.alt_spellings()) | |
print(country.capital()) | |
print(country.currencies()) | |
print(country.languages()) |
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 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: |
NewerOlder