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 json | |
import os | |
from datetime import datetime | |
from time import sleep | |
from selenium import webdriver | |
from selenium.webdriver.chrome.options import Options | |
from selenium.webdriver.common.keys import Keys | |
from selenium.webdriver.support import expected_conditions as EC | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.common.exceptions import TimeoutException |
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 turtle import * | |
from time import sleep | |
import random | |
bgcolor('black') | |
speed(0) | |
line_width = 2 |
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
param_grid = { | |
'weights' : ['uniform', 'distance'], | |
'algorithm' : ['auto', 'ball_tree', 'kd_tree', 'brute'], | |
'leaf_size' : [30, 40, 50], | |
'n_neighbors' : [5, 10, 15], | |
} | |
gridSearchCV = GridSearchCV(KNeighborsRegressor(),param_grid=param_grid,n_jobs=-1) | |
----------------------------------------------------------------------------------------------- | |
param_grid = { |
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
# Liner Regression | |
models = { | |
'LinearRegression' : LinearRegression(), | |
'Ridge' : Ridge(alpha=1.0), | |
'Lasso' : Lasso(), | |
'DecisionTreeRegressor' : DecisionTreeRegressor(), | |
'KNeighborsRegressor' : KNeighborsRegressor(), | |
'SVR' : SVR(), |
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
/* | |
Steps to download | |
1. Open the console | |
2. Select vimeo-player iframe | |
3. paste the code enjoy :) | |
*/ | |
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
let interval = setInterval(function(){ | |
if(document.getElementsByClassName('_1PzAL').length != 0){ | |
document.getElementsByClassName('_1PzAL')[0].style.backgroundImage = 'url("https://source.unsplash.com/random/952x512?sig=1")'; | |
document.getElementsByClassName('_1PzAL')[0].style.opacity = '1'; | |
//clearInterval(interval) | |
} | |
},1000); |
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
# Remove string data from nested list and also print index before printing | |
lst=[ | |
[1,2,3], | |
[11,12,'a','b','C','D', 4], | |
[21,'t',23], | |
[4,5,6,['raja','baja', 'saja', 4444]], | |
[7,87,9], | |
'demo', | |
12.5 |
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
''' | |
Reuire More than 12 GB ram to process all the request.. | |
!pip install nest-asyncio | |
''' | |
import asyncio | |
from aiohttp import ClientSession | |
import nest_asyncio | |
nest_asyncio.apply() |
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
// ==UserScript== | |
// @name Filter Amazon | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.amazon.in/gp/bestsellers/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=amazon.in | |
// @grant none | |
// ==/UserScript== |
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
!pip install python-whois | |
import whois | |
final_list = set() | |
def check_domain(name): | |
try: | |
data = whois.whois(name) |