forked from namdvt/CAPTCHA-Recognition-using-CRNN
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
transferring worked files from docker on server
- Loading branch information
1 parent
53d5bcf
commit 2be4fe9
Showing
15 changed files
with
461 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* | ||
!.gitignore |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import os | ||
|
||
# Get the current directory | ||
current_directory = os.getcwd() | ||
|
||
# File extensions to search for | ||
extensions = ['.html', '.css', '.js', '.py'] | ||
|
||
# Output file name | ||
output_file = 'combined_code.txt' | ||
|
||
# Open the output file in write mode | ||
with open(output_file, 'w') as outfile: | ||
# Iterate over each file in the current directory | ||
for filename in os.listdir(current_directory): | ||
# Check if the file has one of the desired extensions | ||
if any(filename.endswith(ext) for ext in extensions): | ||
# Open the file and read its contents | ||
with open(filename, 'r') as infile: | ||
content = infile.read() | ||
|
||
# Write the file type and content to the output file | ||
outfile.write(f"--- {filename} ---\n") | ||
outfile.write(content) | ||
outfile.write("\n\n") | ||
|
||
print(f"Combined code saved to {output_file}") |
Oops, something went wrong.