This file contains 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
""" | |
Usage: | |
python3 main.py --res <resources_folder> --out <output_folder> | |
Merge and rotate PDF files from the command line | |
Options: | |
--res <resources_folder> Path to the folder containing resource directories with PDF files. | |
--out <output_folder> Path to the output folder where merged and rotated PDFs will be saved. | |
Requirements: |
This file contains 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 os | |
import argparse | |
ignored_files = [ | |
'.gitignore', # Git ignore file | |
'node_modules', # Node.js dependency folder | |
'npm-debug.log', # NPM debug log | |
'yarn-error.log',# Yarn error log | |
'package-lock.json', # NPM lock file | |
'yarn.lock', # Yarn lock file |
This file contains 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
do( | |
define(arr, "289435028342847959"), | |
define(n, len(arr)), | |
define(swapped, "true"), | |
while(==(swapped, "true"), | |
do( | |
define(swapped, "false"), | |
define(i, 0), | |
while(<(i, -(n,1)), | |
do( |