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
| ============================================================ | |
| Page URL: file:///Users/fqx/PycharmProjects/BOSS-hire/test_iframe_nested/outer.html | |
| ============================================================ | |
| [Test 1] tab.find() by text (returns first match) | |
| FOUND outer: 'I am in the OUTER frame' | |
| FOUND middle: 'I am in the MIDDLE frame' | |
| NOT FOUND inner (nested): Timeout (3s) waiting for element with text: 'I am in the INNER frame (nested iframe)' | |
| [Test 2] tab.find_all('p') - how many <p> elements found? |
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 pandas as pd | |
| import matplotlib.pyplot as plt | |
| import seaborn as sns | |
| import numpy as np | |
| from datetime import datetime | |
| import pytz | |
| # Read the CSV file | |
| df = pd.read_csv('~/Downloads/history.csv') |
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/python3 | |
| import requests, re | |
| tgtfile = 'ptv.m3u' | |
| url = 'https://raw.githubusercontent.com/Tzwcard/ChinaTelecom-GuangdongIPTV-RTP-List/master/GuangdongIPTV_rtp_hd.m3u' | |
| api = 'http://epg.51zmt.top:8000/upload/' | |
| rtp = re.compile(r'rtp://') | |
| repl = 'http://192.168.000.000:0000/rtp/' | |
| proxies = { } |
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
| #!/bin/bash | |
| TOTAL=$(ls *.mp4 | wc -l) | |
| for i in *.mp4 | |
| do | |
| ffmpeg -loglevel quiet -y -i "$i" -c copy -movflags +faststart -threads 0 -tag:v hvc1 "temp.mp4" | |
| mv -f "temp.mp4" "$i" | |
| echo $i | |
| done | tqdm --total $TOTAL >> /dev/null |
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 Force Caixin to HTTPS | |
| // @namespace r-a-y/https | |
| // @version 1.0.0 | |
| // @match http://*.caixin.com/* | |
| // @run-at document-start | |
| // @description Force Caixin to use HTTPS. | |
| // ==/UserScript== | |
| document.location.replace(document.location.href.replace(/http\:/, 'https:')); |
This file has been truncated, but you can view the full file.
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
| payload: | |
| #TITLE=anti-AD | |
| #VER=20200721225341 | |
| #URL=https://github.com/privacy-protection-tools/anti-AD | |
| #TOTAL_LINES=36572 | |
| - DOMAIN-SUFFIX,00-gov.cn | |
| - DOMAIN-SUFFIX,kwcdn.000dn.com | |
| - DOMAIN-SUFFIX,kwcscdn.000dn.com | |
| - DOMAIN-SUFFIX,kwflvcdn.000dn.com | |
| - DOMAIN-SUFFIX,s8.001fzc.com |
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
| JFIF ` ` à | |
| Á | |
| ш N j" ߠ | |
| } !1AQa"q2咑䳢r? | |
| %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz冇꒓旘⣤稩㴵蹺ąƇȉʒӔՖטٚᢣ䥦稩걲䵶蹿? |
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 | |
| ignore_user_abort(true); | |
| set_time_limit(0); | |
| @ini_set('error_log',NULL); | |
| @ini_set('log_errors',0); | |
| function getURL($url, $maxRedirs = 5, $timeout = 30) | |
| { | |
| $ch = curl_init(); $header[] = "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"; $header[] = "Connection: keep-alive"; $header[] = "Keep-Alive: 300"; $header[] = "Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3"; $header[] = "Pragma: "; curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0"); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($c |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
| ; #Warn ; Enable warnings to assist with detecting common errors. | |
| SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
| SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
| $CapsLock:: | |
| KeyWait, CapsLock, T0.5 | |
| If ErrorLevel { | |
| SetCapsLockState % !GetKeyState("CapsLock", "T") | |
| KeyWait, CapsLock | |
| } Else |
NewerOlder