-
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.
Working on resume and tackling with nasty previous versions. Also com…
…ing up with a preliminary Makefile.
- Loading branch information
Showing
32 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,17 @@ | ||
# genpdf is used to generate pdf files from the word files | ||
# CAUTION: running the command might take very llong time! | ||
# List of input .docx files | ||
INPUT_DOCX_FILES := $(wildcard *.docx) | ||
|
||
# Define a rule to process .docx files | ||
process_files: $(INPUT_DOCX_FILES) | ||
|
||
$(INPUT_DOCX_FILES): | ||
@echo "Converting $@ to PDF" | ||
docx2pdf "$@" | ||
|
||
.PHONY: process_files | ||
|
||
|
||
clean: | ||
rm *.pdf |
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,13 @@ | ||
A collection of previous resume versions... | ||
|
||
`rename_spaces.sh` is used for renaming the files for a better formatting issues. | ||
|
||
E.g. previous file names are `Resume - Stanley Yang - 0321.docx`. The spaces are tricky to tackle when coming to terminals, so I decided to replace the spaces by underlines and remove extra delimiters, if necessary. | ||
|
||
|
||
Things I learned: | ||
|
||
`make -B <target>` will ignore timestamp checks and execute the target unconditionally. | ||
|
||
|
||
Current problem to address: too many copies and versions of word (TBD) |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,17 @@ | ||
# List of input .docx files | ||
INPUT_DOCX_FILES := $(wildcard *.docx) | ||
|
||
# Define a rule to process .docx files | ||
process_files: # $(INPUT_DOCX_FILES) | ||
|
||
$(INPUT_DOCX_FILES): | ||
@echo "Converting $@ to PDF" | ||
docx2pdf "$@" | ||
|
||
.PHONY: process_files | ||
|
||
|
||
clean: | ||
rm *.pdf | ||
|
||
|
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,19 @@ | ||
#!/bin/bash | ||
|
||
# Iterate through all files in the current directory | ||
for file in *; do | ||
# Check if the item is a file (not a directory) | ||
if [ -f "$file" ]; then | ||
# Replace spaces with underscores in the file name | ||
# new_file_name=$(echo "$file" | sed 's/ - /_/g') | ||
new_file_name=$(echo "$file" | sed 's/Stanley Yang/Stanley_Yang/g') | ||
|
||
# Check if the new file name is different from the old one | ||
if [ "$file" != "$new_file_name" ]; then | ||
# Rename the file | ||
mv "$file" "$new_file_name" | ||
echo "Renamed: $file -> $new_file_name" | ||
fi | ||
fi | ||
done | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.