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
| # GitHub Repository Configuration | |
| REPO="OWNER/REPO_NAME" | |
| # Fetch all IDs at once, skip latest (first one) | |
| IDS=$(gh api --method GET "/repos/$REPO/deployments?per_page=100" | jq -r '.[].id' | tail -n +2) | |
| delete_deployment() { | |
| ID=$1 | |
| REPO=$2 | |
| gh api --method POST /repos/$REPO/deployments/$ID/statuses \ |
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
| # GitHub Repository Configuration | |
| REPO="OWNER/REPO_NAME" | |
| # Fetch all workflow run IDs (loops through pages) | |
| IDS=$(gh api --paginate --method GET "/repos/$REPO/actions/runs?per_page=100" \ | |
| | jq -r '.workflow_runs[].id') | |
| delete_run() { | |
| ID=$1 | |
| REPO=$2 |
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 sys | |
| import argparse | |
| import random | |
| def main(): | |
| inp = get(sys.argv[1:]) | |
| allq = open_txt(inp) | |
| try: | |
| num = int(input("Number of Questions: ")) | |
| except: |
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 | |
| # Load the CSV file | |
| file_path = input("Enter the path to your CSV file: ") | |
| df = pd.read_csv(file_path) | |
| # Iterate over each column and print unique values | |
| for column in df.columns: | |
| unique_values = df[column].unique() | |
| print(f"Unique values in column '{column}':") |
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
| ################### | |
| INPUT_L = 'en' | |
| OUTPUT_L = 'fa' | |
| ################### | |
| from deep_translator import GoogleTranslator | |
| print("BE SURE TO RUN THE PROGRAM IN THE SAME DIRECTORY AS THE FILE") | |
| path = input("file name: ") | |
| out = path.split('.')[0] | |
| output = '' |