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() { | |
var proxied = window.XMLHttpRequest.prototype.open; | |
window.XMLHttpRequest.prototype.open = function() { | |
console.log( arguments ); | |
return proxied.apply(this, [].slice.call(arguments)); | |
}; | |
})(); |
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 name="viewport" content="width=device-width, initial-scale=1"> | |
<title></title> | |
</head> | |
<body> | |
<div class="container"> | |
<h2>Button Styles</h2> | |
<button type="button" id="button1" class="btn">Basic</button> |
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
// js | |
xhr: function() | |
{ | |
var xhr = new window.XMLHttpRequest(); | |
let duration_change = true; | |
//Download progress | |
xhr.addEventListener("progress", function(evt){ | |
if (evt.lengthComputable) { | |
var percentComplete = evt.loaded / evt.total; |
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 | |
from selenium.webdriver.support.ui import Select | |
import os | |
import shutil | |
import time | |
import ntpath | |
from selenium.webdriver.support import expected_conditions as EC | |
from selenium.webdriver.common.by import By |
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 fetch_data($project_id) { | |
progress_bar_start(); | |
visible_column_list = []; | |
columnDefs = []; | |
/*Extracting Column name from List*/ | |
column_filter.each(function () { | |
visible_column_list.push({'data': $(this).val()}); |
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
Fix telescope path issue. | |
Auto Load Entries | |
0. mkdir -p resources/views/vendor/telescope | |
1. cp vendor/laravel/telescope/resources/views/layout.blade.php resources/views/vendor/telescope/ | |
2. window.Telescope.path = '{{ env('MIX_APP_NAME') }}/telescope'; in view | |
3. MIX_APP_NAME=Projects/catalet/public/ |
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(), |
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
# !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
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 |