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 argparse | |
| import copy | |
| import csv | |
| import logging | |
| import re | |
| import shutil | |
| import zipfile | |
| from datetime import datetime | |
| from pathlib import Path | |
| import xml.etree.ElementTree as ET |
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
| (() => { | |
| let isVideoHandled = false; // Flag to indicate if the video has been handled | |
| const checkVideoStart = () => { | |
| const video = document.querySelector('#movie_player > div.html5-video-container > video'); | |
| if (!video) return; | |
| // When the video starts playing (currentTime changes from 0), pause it | |
| if (video.currentTime > 0 && !video.paused) { | |
| video.pause(); |
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
| (() => { | |
| let isInitialized = false; // Flag to indicate if the initial pause has been done | |
| const pauseVideo = () => { | |
| if (isInitialized) return; // If the initial pause has been done, do nothing further | |
| const video = document.querySelector('#movie_player > div.html5-video-container > video'); | |
| // Pause the video if it's found and playing, and then perform cleanup | |
| if (video && !video.paused) { |
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 | |
| # Create directories and files | |
| mkdir -p ./components/ui | |
| mkdir -p ./lib | |
| touch ./lib/utils.ts | |
| # Prompt to move globals.css | |
| echo "Would you like to move globals.css to styles/globals.css? (y/n)" | |
| read -r -p "[Y/n]: " move_response |
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
| // @ts-nocheck | |
| const fs = require('fs') | |
| const path = require('path') | |
| const readline = require('readline') | |
| const ts = require('typescript') | |
| // Read directory path from command-line arguments or ask for it | |
| let componentsDirectoryPath = process.argv[2] | |
| if (!componentsDirectoryPath) { | |
| const rl = readline.createInterface({ |