diff --git a/README.md b/README.md index a1b4259..f144be7 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,13 @@ Thanks a lot for spending your time helping! Keep rocking 🍻 Null + + + bartick +
+ Bartick Maiti +
+ Abbhiishek @@ -73,13 +80,6 @@ Thanks a lot for spending your time helping! Keep rocking 🍻 Md Farhan Sajid - - - bartick -
- Bartick Maiti -
- ArshErgon @@ -88,6 +88,13 @@ Thanks a lot for spending your time helping! Keep rocking 🍻 + + + Ayudh-65 +
+ Null +
+ Montekkundan @@ -116,6 +123,14 @@ Thanks a lot for spending your time helping! Keep rocking 🍻 Sawan Bhattacharya + + + HVbajoria +
+ Harshavardhan Bajoria +
+ + avyayjain @@ -129,8 +144,7 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
Aditya Tiwari
- - + BassCoder2808 @@ -158,7 +172,8 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
Sauraj
- + + srinjoy-26 @@ -172,8 +187,7 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
Akash Jain
- - + donheshanthaka @@ -201,7 +215,8 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
Nafis Adnan Mondal
- + + lordvader501 @@ -215,8 +230,7 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
Null
- - + smit-sms diff --git a/scripts/Fidget spinner/README.md b/scripts/Fidget spinner/README.md new file mode 100644 index 0000000..1e1e48a --- /dev/null +++ b/scripts/Fidget spinner/README.md @@ -0,0 +1,13 @@ +# Fidget Spinner With Python +This is a fidget spinner simulator made using Python which can help you release nervous energy, and anxiety and stay calm. + +## How to install? +1) Download the file fidgetspinner.py +2) Open CMD (Command Prompt) +3) Run python fidgetspinner.py +4) Press the spacebar 5-6 times and see it accelerating with the press. + +## Requirements? +None! + +Hope you enjoy it! ❤️ diff --git a/scripts/Fidget spinner/fidgetspinner.py b/scripts/Fidget spinner/fidgetspinner.py new file mode 100644 index 0000000..f6851c6 --- /dev/null +++ b/scripts/Fidget spinner/fidgetspinner.py @@ -0,0 +1,52 @@ +#Import libraries and modules +from turtle import * + +state = {'turn': 0} + +# Function to spin the fidget +def spinner(): + clear() + angle = state['turn']/8 + right(angle) + forward(100) + # Declare first dot + dot(200, 'teal') + back(100) + right(120) + forward(100) + # Declare second dot + dot(200, 'peach puff') + back(100) + right(120) + forward(100) + # Declare third dot + dot(200, 'navy') + back(100) + right(120) + update() + +# Function that slows down the widget with time and spins it +def animate(): + if state['turn']>0: + state['turn']-=1 + + spinner() + ontimer(animate, 20) + +# Flick the fidget based on number of clicks +def flick(): + state['turn']+=12 + +# Define window size +setup(520, 520, 370, 0) + +hideturtle() +tracer(False) +width(20) + +# Call the function with clicks on spacebar +onkey(flick, 'space') +listen() +animate() +done() + diff --git a/scripts/word_to_pdf_converter/README.md b/scripts/word_to_pdf_converter/README.md new file mode 100644 index 0000000..14fdf39 --- /dev/null +++ b/scripts/word_to_pdf_converter/README.md @@ -0,0 +1,16 @@ +# Word file (docx) to PDF converter + +This is a easy-to-use Tkinter GUI application that takes a .docx file or a folder with .docx files as an input and converts them into .pdf files using the docx2pdf module + +### Installing Requirements + - Open Windows Command Prompt + - Run command ``` pip install docx2pdf ``` + +### Usage + - Install the requirements (Python and docx2pdf module) + - Run the script + - Select the file/files to be converted + - Wait for confirmation + + ### Screenshots + ![Screenshot](/scripts/word_to_pdf_converter/example_screenshot.jpg?raw=true) diff --git a/scripts/word_to_pdf_converter/Test.docx b/scripts/word_to_pdf_converter/Test.docx new file mode 100644 index 0000000..b08cc44 Binary files /dev/null and b/scripts/word_to_pdf_converter/Test.docx differ diff --git a/scripts/word_to_pdf_converter/Test.pdf b/scripts/word_to_pdf_converter/Test.pdf new file mode 100644 index 0000000..f7ee69e Binary files /dev/null and b/scripts/word_to_pdf_converter/Test.pdf differ diff --git a/scripts/word_to_pdf_converter/example_screenshot.jpg b/scripts/word_to_pdf_converter/example_screenshot.jpg new file mode 100644 index 0000000..75f685f Binary files /dev/null and b/scripts/word_to_pdf_converter/example_screenshot.jpg differ diff --git a/scripts/word_to_pdf_converter/requirements.txt b/scripts/word_to_pdf_converter/requirements.txt new file mode 100644 index 0000000..2405676 --- /dev/null +++ b/scripts/word_to_pdf_converter/requirements.txt @@ -0,0 +1 @@ +docx2pdf==0.1.8 \ No newline at end of file diff --git a/scripts/word_to_pdf_converter/script.py b/scripts/word_to_pdf_converter/script.py new file mode 100644 index 0000000..0026089 --- /dev/null +++ b/scripts/word_to_pdf_converter/script.py @@ -0,0 +1,32 @@ +import tkinter as tk +from docx2pdf import convert +import tkinter.ttk as ttk +from tkinter.filedialog import askopenfile, askdirectory +from tkinter.messagebox import showinfo + +win = tk.Tk() +win.title("Docx to PDF Converter") + + +def openfile(): + file = askopenfile(filetypes=[("Word Files", "*.docx")]) + convert(file.name) + showinfo("Done", "File Converted Successfully") + + +def openfolder(): + folder = askdirectory() + convert(folder) + showinfo("Done", "Files Converted Successfully") + + +label = tk.Label(win, text="Select File/Folder to convert: ") +label.grid(row=0, column=0, padx=5, pady=5) + +button1 = ttk.Button(win, text="Select File", width=30, command=openfile) +button1.grid(row=1, column=0, padx=5, pady=5) + +button2 = ttk.Button(win, text="Select Folder", width=30, command=openfolder) +button2.grid(row=2, column=0, padx=5, pady=5) + +win.mainloop()