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
/* | |
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
# 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
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
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
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
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
# !apt-get update | |
# !apt install chromium-chromedriver | |
# !cp /usr/lib/chromium-browser/chromedriver /content/drive/MyDrive/Colab\ Notebooks | |
# !pip install selenium | |
# !chmod 0777 chromedriver | |
import json | |
import os | |
from time import sleep |
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
columns: [ | |
{data: "check_box", mData: "check_box", orderable: false}, | |
{data: "profile_pic_and_name", mData: "profile_pic_and_name"}, | |
{data: "user.custom_user_id", mData: "user.custom_user_id"}, | |
{data: "role", mData: "role"}, | |
{data: "company_name", mData: "company_name"}, | |
{data: "status", mData: "status"}, | |
{data: "created_at", mData: "created_at"}, | |
{data: "user.first_name", mData: "user.first_name","visible": false,}, |
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
Collection::macro('paginate', function($perPage, $total = null, $page = null, $pageName = 'page') { | |
$page = $page ?: LengthAwarePaginator::resolveCurrentPage($pageName); | |
return new LengthAwarePaginator( | |
$this->forPage($page, $perPage), | |
$total ?: $this->count(), | |
$perPage, | |
$page, | |
[ | |
'path' => LengthAwarePaginator::resolveCurrentPath(), |