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 | |
from bs4 import BeautifulSoup | |
import time | |
search = input('Search: ') | |
searched_url = 'https://www.google.com/search?q='+search.replace(' ','+') | |
# googling | |
page = requests.get(searched_url) |
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
<!DOCTYPE html> | |
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>The page you were looking for doesn't exist (404)</title> | |
<meta name="robots" content="noindex"> | |
<style type="text/css"> | |
body { | |
background:#fafafa; | |
font-family: 'Open Sans', sans-serif; | |
font-weight:300; | |
color:#979997; |
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
# index.php | |
<?php | |
$REQUEST_URI = $_SERVER['REQUEST_URI']; | |
$REQUEST_URI_split = explode('/',$REQUEST_URI); | |
$SCRIPT_NAME = $_SERVER['SCRIPT_NAME']; | |
$SCRIPT_NAME_split = explode('/',$SCRIPT_NAME); | |
$intersection_length = count(array_intersect($REQUEST_URI_split,$SCRIPT_NAME_split)); |
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 certificate_search_ele = $('#certificate-search'); | |
let certificate_list_text_ele = $('.certificate-list-text'); | |
let certificate_category_ele = $('#certificate_category'); | |
function applyFilters() { | |
/*Search Filter */ | |
let value = certificate_search_ele.val().toLowerCase(); | |
certificate_list_text_ele.filter(function () { | |
$(this).toggle($(this).text().toLowerCase().indexOf(value) > -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
$data = User::all(); | |
$dataTable = DataTables::collection($data) | |
->editColumn('check_box', static function ($value) { | |
return '<td> | |
<div class="checkbox"> | |
<input type="checkbox" name="check" value="checkbox" class="row-check-box-active-table"> | |
<label for="checkbox"></label> | |
</div> | |
</td>'; | |
})->editColumn('profile_pic_and_name', static function ($value) { |
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
$(function () { | |
let data_table = $('#data-table'); | |
let data_table_object = null; | |
fetch_data() | |
function fetch_data() { | |
if (data_table_object != null) { | |
data_table_object.destroy(); | |
} | |
data_table_object = data_table.DataTable({ |
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 itertools import permutations | |
password = [ | |
'rahul', | |
'kumar', | |
'rina', | |
'kumari', | |
'2001', | |
'2001', | |
'loves' |
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
#!/usr/bin/env python | |
# coding: utf-8 | |
# In[1]: | |
get_ipython().system('python -m pip install dask[dataframe] --upgrade') | |
get_ipython().system('python -m pip install Flask') | |
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 selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
from selenium.webdriver.chrome.options import Options | |
CHROME_PATH = '/usr/bin/google-chrome' | |
CHROMEDRIVER_PATH = './chromedriver' | |
url = 'https://google.com' | |
chrome_options = Options() |
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
def generate_sequence(stop_arr): | |
arr_for_combination = [] | |
arr = [] | |
max_iteration = 1 | |
for one_stop in stop_arr: | |
arr.append(0) | |
max_iteration *= one_stop + 1 | |
max_iteration_copy = max_iteration | |
max_iteration = int(max_iteration / len(arr) + 1) |