Skip to content

Commit

Permalink
transferring worked files from docker on server
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyashguptas committed Jun 23, 2024
1 parent 53d5bcf commit 2be4fe9
Show file tree
Hide file tree
Showing 15 changed files with 461 additions and 6 deletions.
Binary file added .DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions CAPTCHA Images/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
27 changes: 27 additions & 0 deletions code_context.py
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}")
Loading

0 comments on commit 2be4fe9

Please sign in to comment.