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 | |
| import subprocess | |
| import sys | |
| def get_video_duration(filepath: str, verbose: bool) -> float: | |
| """Return the video duration in seconds using ffprobe.""" | |
| try: | |
| result = subprocess.run( | 
  
    
      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
    
  
  
    
  | # pip install pygame pynput | |
| import pygame | |
| from pynput.keyboard import Controller, Key | |
| import time | |
| # Initialize | |
| pygame.init() | |
| pygame.joystick.init() | |
| # Wait for joystick to initialize | 
  
    
      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 groovy | |
| import groovy.xml.*; | |
| import javax.crypto.SecretKeyFactory | |
| import javax.crypto.SecretKey | |
| import javax.crypto.Cipher | |
| import javax.crypto.spec.PBEParameterSpec | |
| import javax.crypto.spec.PBEKeySpec | |
| import java.util.Base64 | |
| import java.util.Base64.Decoder |