This repository was archived by the owner on Jan 5, 2022. It is now read-only.
File tree 5 files changed +9
-14
lines changed
5 files changed +9
-14
lines changed Original file line number Diff line number Diff line change 45
45
46
46
# save merged PDF
47
47
merger .write (open ("merged.pdf" , 'wb' ))
48
- print (f "\n PDF merge complete! Saved as: merged.pdf\n " )
48
+ print ("\n PDF merge complete! Saved as: merged.pdf\n " )
49
49
50
50
except Exception as e :
51
51
print (f"\n Error: File could not be processed!\n { filename } " )
Original file line number Diff line number Diff line change @@ -16,5 +16,5 @@ if [[ $* == "" ]]; then
16
16
exit 1
17
17
fi
18
18
19
- mkdir -p $(dirname $1)
20
- touch $1
19
+ mkdir -p " $(dirname "$1")"
20
+ touch "$1"
Original file line number Diff line number Diff line change 3
3
# The usual "echo $PATH" is messy.
4
4
# Usage: ./path
5
5
6
- if [[ " $SHELL " == " /bin/zsh" ]]; then
7
- source ~ /.zshrc
8
- else
9
- source ~ /.bashrc
10
- fi
11
- tr ' :' ' \n' <<< \" $PATH \" | less
6
+ tr ' :' ' \n' <<< " $PATH" | less
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Removes specified pages from a given PDF file.
10
10
### Usage
11
11
12
12
1. Ensure that you have `pip` installed.
13
- 2. Run the script with the PDF file to be processed and the page numbers
13
+ 2. Run the script with the PDF file to be processed and the page numbers
14
14
to be removed (comma separated, no spaces).
15
15
```
16
16
$ ./remove-pages doc.pdf 1,2,3
42
42
43
43
# save modified PDF
44
44
writer .write (open ("new_doc.pdf" , 'wb' ))
45
- print (f "\n Page removal complete! Saved as: new_doc.pdf" )
45
+ print ("\n Page removal complete! Saved as: new_doc.pdf" )
46
46
else :
47
47
print_help ()
48
48
49
49
except Exception as e :
50
- print (f "\n Error: File could not be processed!" )
50
+ print ("\n Error: File could not be processed!" )
51
51
print (e )
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ npm install \
13
13
coc-spell-checker \
14
14
coc-snippets \
15
15
coc-explorer \
16
- coc-vimlsp \
17
16
coc-highlight \
17
+ coc-vimlsp \
18
18
coc-java \
19
19
coc-jedi \
20
20
coc-html \
@@ -27,7 +27,7 @@ npm install \
27
27
28
28
# https://github.com/neoclide/coc-java/issues/99#issuecomment-663856695
29
29
coc_java_data=" $extpath /coc-java-data/server"
30
- rm -rf " $coc_java_data /*"
30
+ rm -rf " ${ coc_java_data:? } /*"
31
31
jdt_ls=" jdt-language-server-0.57.0-202006172108.tar.gz"
32
32
wget https://download.eclipse.org/jdtls/milestones/0.57.0/$jdt_ls
33
33
tar -xf " $jdt_ls " -C " $coc_java_data "
You can’t perform that action at this time.
0 commit comments