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 | |
| import pandas as pd | |
| from rich.console import Console | |
| from rich.table import Table | |
| from rich import box | |
| def obtener_datos_ip(ip=None): | |
| url = f"https://ip.guide/{ip}" if ip else "https://ip.guide" | |
| try: | |
| respuesta = requests.get(url, timeout=10) |
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
| ((async (startPage = 0, autoClearConsole = true) => { | |
| const getCookie = (name) => { | |
| const value = `; ${document.cookie}`; | |
| const parts = value.split(`; ${name}=`); | |
| if (parts.length === 2) return parts.pop().split(';').shift(); | |
| } | |
| const callCacheApi = async (params = {}) => { | |
| const defaultParams = { |
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
| local utils = require 'mp.utils' | |
| function create_screenshot_directory() | |
| local path = mp.get_property_native('path') | |
| local filename = mp.get_property_native('filename/no-ext') | |
| -- Directorio donde se generará el directorio con el nombre del vídeo | |
| local screenshot_directory = 'D:\\Multimedia\\Images\\MPV Screenshots\\' .. filename | |
| -- Crea el directorio si no existe | |
| utils.subprocess({ args = {'mkdir', '-p', screenshot_directory} }) |
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 the Tkinter module | |
| import tkinter as tk | |
| # Create a root window | |
| root = tk.Tk() | |
| # Create a label to display the input string | |
| label = tk.Label(root, text="Enter a string:") | |
| label.pack() |