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.by import By | |
from selenium.webdriver.support.wait import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as EC | |
class Web_Bot : | |
def __init__(self): | |
driver = webdriver.Chrome() | |
self.driver = driver |
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 keyboard | |
import pyautogui | |
import time | |
import mss | |
import cv2 | |
import pytesseract | |
pytesseract.pytesseract.tesseract_cmd = r'F:\Tesseract-OCR\tesseract.exe' |
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 { get_offset, min_max } from 'js/utils'; | |
export default class Horizontal_Scroll_Carousel { | |
constructor(container, args = {}){ | |
this.container = container; | |
this.args = args; | |
this.animation_speed = args.animation_speed ?? 1000; | |
this.scroll_duration = args.scroll_duration ?? 2000; |
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
export default class Hooks { | |
constructor(action_keys){ | |
this.action_keys = action_keys; | |
this.actions = {}; | |
this.filters = {}; | |
action_keys.forEach(action_key=>{ | |
this.actions[action_key] = []; |
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
init(); | |
function init(){ | |
document.addEventListener( 'gform/post_render', (e)=>{ | |
const { formId, currentPage } = e.detail; | |
if( formId !== 10 ) return; | |
init_custom_steps_validation(formId, currentPage); | |
}); | |
} |
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
<?php | |
/* | |
Plugin Name: FF Plugin Disabler | |
Description: Disable selected plugins for optimization | |
Version: 2.0 | |
Author: Five by Five | |
Author URI: https://www.fivebyfive.com.au/ | |
*/ | |
if( strpos( $_SERVER['REQUEST_URI'], '/wp-admin/' ) !== false ) return; // front-end only |
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
add_shortcode('broker_init', function(){ | |
ob_start(); | |
include 'broker/init.php'; | |
return ob_get_clean(); | |
}); | |
add_action('init', 'custom_rewrite_rules'); | |
function custom_rewrite_rules(){ | |
add_rewrite_rule( | |
'^broker/([\w+-]*)/([\w+-]*)/?$', |
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
@echo off | |
setlocal enabledelayedexpansion | |
set url=https://next-level-racing-new.local/wp-admin/ | |
set runs=3 | |
for /L %%i in (1,1,%runs%) do ( | |
curl -o NUL -s -w "%%{time_total}\n" -H "Pragma: no-cache" -H "cookie:{INSERT_COOKIE_HERE}" "!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
<?php | |
function ffdb($args){ | |
global $wpdb; | |
$post_type = $args['post_type'] ?? 'post'; | |
$post_status = $args['post_status'] ?? 'publish'; | |
$term_id = $args['term_id'] ?? null; | |
$meta_key = $args['meta_key'] ?? null; | |
$meta_value = $args['meta_value'] ?? null; |
NewerOlder