Merge branch 'master' into master

This commit is contained in:
Siddhesh Bhupendra Kuakde 2022-10-14 07:53:28 +05:30 committed by GitHub
commit 58ff4fdcd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
16 changed files with 1668 additions and 44 deletions

View File

@ -81,10 +81,10 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
</a>
</td>
<td align="center">
<a href="https://github.com/SiddheshKukade">
<img src="https://avatars.githubusercontent.com/u/65951872?v=4" width="100;" alt="SiddheshKukade"/>
<a href="https://github.com/rahulkarda">
<img src="https://avatars.githubusercontent.com/u/76204863?v=4" width="100;" alt="rahulkarda"/>
<br />
<sub><b>Siddhesh Bhupendra Kuakde</b></sub>
<sub><b>Rahul Karda</b></sub>
</a>
</td></tr>
<tr>
@ -110,10 +110,10 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
</a>
</td>
<td align="center">
<a href="https://github.com/rahulkarda">
<img src="https://avatars.githubusercontent.com/u/76204863?v=4" width="100;" alt="rahulkarda"/>
<a href="https://github.com/N00rAhmed">
<img src="https://avatars.githubusercontent.com/u/86896171?v=4" width="100;" alt="N00rAhmed"/>
<br />
<sub><b>Rahul Karda</b></sub>
<sub><b>Noor Ahmed</b></sub>
</a>
</td>
<td align="center">
@ -138,13 +138,6 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
<sub><b>Md Farhan Sajid</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/N00rAhmed">
<img src="https://avatars.githubusercontent.com/u/86896171?v=4" width="100;" alt="N00rAhmed"/>
<br />
<sub><b>Noor Ahmed</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/HVbajoria">
<img src="https://avatars.githubusercontent.com/u/62978274?v=4" width="100;" alt="HVbajoria"/>
@ -159,6 +152,13 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
<sub><b>Raihan Khan</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/SiddheshKukade">
<img src="https://avatars.githubusercontent.com/u/65951872?v=4" width="100;" alt="SiddheshKukade"/>
<br />
<sub><b>Siddhesh Bhupendra Kuakde</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/ArshErgon">
<img src="https://avatars.githubusercontent.com/u/40994679?v=4" width="100;" alt="ArshErgon"/>
@ -281,6 +281,13 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
<sub><b>Null</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/srishti011">
<img src="https://avatars.githubusercontent.com/u/48403800?v=4" width="100;" alt="srishti011"/>
<br />
<sub><b>Srishti</b></sub>
</a>
</td>
<td align="center">
<a href="https://github.com/Tiagupt03">
<img src="https://avatars.githubusercontent.com/u/98590820?v=4" width="100;" alt="Tiagupt03"/>
@ -294,15 +301,15 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
<br />
<sub><b>Avyay Jain</b></sub>
</a>
</td>
</td></tr>
<tr>
<td align="center">
<a href="https://github.com/drk1rd">
<img src="https://avatars.githubusercontent.com/u/58465650?v=4" width="100;" alt="drk1rd"/>
<br />
<sub><b>Drk1rd</b></sub>
</a>
</td></tr>
<tr>
</td>
<td align="center">
<a href="https://github.com/lordvader501">
<img src="https://avatars.githubusercontent.com/u/60027612?v=4" width="100;" alt="lordvader501"/>
@ -337,15 +344,15 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
<br />
<sub><b>Shradha</b></sub>
</a>
</td>
</td></tr>
<tr>
<td align="center">
<a href="https://github.com/NishantPacharne">
<img src="https://avatars.githubusercontent.com/u/71060551?v=4" width="100;" alt="NishantPacharne"/>
<br />
<sub><b>Nishant Pacharne</b></sub>
</a>
</td></tr>
<tr>
</td>
<td align="center">
<a href="https://github.com/thegeekyb0y">
<img src="https://avatars.githubusercontent.com/u/84658112?v=4" width="100;" alt="thegeekyb0y"/>
@ -380,15 +387,15 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
<br />
<sub><b>Olayinka Adeyemi</b></sub>
</a>
</td>
</td></tr>
<tr>
<td align="center">
<a href="https://github.com/parinzee">
<img src="https://avatars.githubusercontent.com/u/30139280?v=4" width="100;" alt="parinzee"/>
<br />
<sub><b>Parinthapat P.</b></sub>
</a>
</td></tr>
<tr>
</td>
<td align="center">
<a href="https://github.com/iamrahul8">
<img src="https://avatars.githubusercontent.com/u/72541381?v=4" width="100;" alt="iamrahul8"/>
@ -423,15 +430,15 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
<br />
<sub><b>Yash Indane</b></sub>
</a>
</td>
</td></tr>
<tr>
<td align="center">
<a href="https://github.com/ambushneupane">
<img src="https://avatars.githubusercontent.com/u/56769633?v=4" width="100;" alt="ambushneupane"/>
<br />
<sub><b>Ambush</b></sub>
</a>
</td></tr>
<tr>
</td>
<td align="center">
<a href="https://github.com/aswin2108">
<img src="https://avatars.githubusercontent.com/u/72661784?v=4" width="100;" alt="aswin2108"/>
@ -466,15 +473,15 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
<br />
<sub><b>Aiman Aisha</b></sub>
</a>
</td>
</td></tr>
<tr>
<td align="center">
<a href="https://github.com/akashJainAJ11">
<img src="https://avatars.githubusercontent.com/u/94193834?v=4" width="100;" alt="akashJainAJ11"/>
<br />
<sub><b>Akash Jain</b></sub>
</a>
</td></tr>
<tr>
</td>
<td align="center">
<a href="https://github.com/Rancho2002">
<img src="https://avatars.githubusercontent.com/u/92109154?v=4" width="100;" alt="Rancho2002"/>
@ -509,15 +516,15 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
<br />
<sub><b>Gokul_Zuzu</b></sub>
</a>
</td>
</td></tr>
<tr>
<td align="center">
<a href="https://github.com/KuSantosh100">
<img src="https://avatars.githubusercontent.com/u/97560663?v=4" width="100;" alt="KuSantosh100"/>
<br />
<sub><b>KUMAR SANTOSH</b></sub>
</a>
</td></tr>
<tr>
</td>
<td align="center">
<a href="https://github.com/Manice18">
<img src="https://avatars.githubusercontent.com/u/91601706?v=4" width="100;" alt="Manice18"/>
@ -552,15 +559,15 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
<br />
<sub><b>Ramon Saraiva</b></sub>
</a>
</td>
</td></tr>
<tr>
<td align="center">
<a href="https://github.com/riyajaiswal25">
<img src="https://avatars.githubusercontent.com/u/84279900?v=4" width="100;" alt="riyajaiswal25"/>
<br />
<sub><b>Riya Jaiswal</b></sub>
</a>
</td></tr>
<tr>
</td>
<td align="center">
<a href="https://github.com/sarthakroy2002">
<img src="https://avatars.githubusercontent.com/u/47187468?v=4" width="100;" alt="sarthakroy2002"/>
@ -595,15 +602,15 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
<br />
<sub><b>Ansh Rusia</b></sub>
</a>
</td>
</td></tr>
<tr>
<td align="center">
<a href="https://github.com/arpitbhardwaj">
<img src="https://avatars.githubusercontent.com/u/23013825?v=4" width="100;" alt="arpitbhardwaj"/>
<br />
<sub><b>Arpit Bhardwaj</b></sub>
</a>
</td></tr>
<tr>
</td>
<td align="center">
<a href="https://github.com/artemis-i-guess">
<img src="https://avatars.githubusercontent.com/u/65388018?v=4" width="100;" alt="artemis-i-guess"/>
@ -638,15 +645,15 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
<br />
<sub><b>Yash Nilesh Brid</b></sub>
</a>
</td>
</td></tr>
<tr>
<td align="center">
<a href="https://github.com/mclmza">
<img src="https://avatars.githubusercontent.com/u/7353871?v=4" width="100;" alt="mclmza"/>
<br />
<sub><b>Michele Mazza</b></sub>
</a>
</td></tr>
<tr>
</td>
<td align="center">
<a href="https://github.com/mer747">
<img src="https://avatars.githubusercontent.com/u/84189502?v=4" width="100;" alt="mer747"/>
@ -681,15 +688,15 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
<br />
<sub><b>Smit Shah</b></sub>
</a>
</td>
</td></tr>
<tr>
<td align="center">
<a href="https://github.com/SameerSahu007">
<img src="https://avatars.githubusercontent.com/u/29480670?v=4" width="100;" alt="SameerSahu007"/>
<br />
<sub><b>Sameer Sahu</b></sub>
</a>
</td></tr>
<tr>
</td>
<td align="center">
<a href="https://github.com/shatanikmahanty">
<img src="https://avatars.githubusercontent.com/u/67138059?v=4" width="100;" alt="shatanikmahanty"/>
@ -698,4 +705,4 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
</a>
</td></tr>
</table>
<!-- readme: contributors -end -->
<!-- readme: contributors -end -->

View File

@ -0,0 +1,16 @@
# Extract text from image
This script extracts text from an image using the EasyOCR library.
It can support multiple languages.
## Usage
1. Create a virtual environment
2. Install the requirements - `pip install -r requirements.txt`
3. Run the script - `python main.py`
## Output
Output will be printed to console.
Happy coding!!

View File

@ -0,0 +1,15 @@
import easyocr
gpu = False # if you want to use GPU, set gpu=True
languages = ['en'] # refer https://www.jaided.ai/easyocr/ for supporting languages
reader = easyocr.Reader(languages, gpu=gpu)
IMG_PATH = 'test1.png'
result = reader.readtext(IMG_PATH)
text = ''
for tup in result:
text += tup[1]
print(text)

View File

@ -0,0 +1 @@
easyocr==1.6.2

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,22 @@
## Loan Prediction Model
The goal of this project is that from the data collected on the loans applicants, preprocess the data and predict based on the information who will be able to receive the loan or not.
### In the Dataset we find the following features:
1. Loan ID, the identifier code of each applicant.
2. Gender, Male or Female for each applicant.
3. Married, the maritage state.
4. Dependents, how many dependents does the applicant have?
5. Education, the level of education, graduate or non graduate
6. Self Employed, Yes or No in the case
7. Applicant Income
8. Coapplicant Income
9. Loan Amount
10. Loan Amount Term
11. Credit History, just Yes or No in the case
12. Property Area, urban, semiurban or rural area of the applicants property
Loan Status, Yes or No ( The independent variable represents the class)

View File

@ -0,0 +1,13 @@
# Music Player GUI
![Screenshot (465)](https://user-images.githubusercontent.com/48403800/195563802-fdc224c3-8325-4e1b-b768-2d85e44a3666.png)
This is a GUI framework where two GUI libraries are used:
- Pygame
- Tkinter
It has functions such as play, stop, pause and resume in order to control the music player.
To create a music player with Python, we will be using the **Pygame** sound component and _askdirectory()_ method of Tkinter

View File

@ -0,0 +1,45 @@
import pygame
import tkinter as tkr
from tkinter.filedialog import askdirectory
import os
music_player = tkr.Tk()
music_player.title("My Music Player")
music_player.geometry("450x350")
directory = askdirectory()
os.chdir(directory)
song_list = os.listdir()
play_list = tkr.Listbox(music_player, font="Helvetica 12 bold", bg='yellow', selectmode=tkr.SINGLE)
for item in song_list:
pos = 0
play_list.insert(pos, item)
pos += 1
pygame.init()
pygame.mixer.init()
def play():
pygame.mixer.music.load(play_list.get(tkr.ACTIVE))
var.set(play_list.get(tkr.ACTIVE))
pygame.mixer.music.play()
def stop():
pygame.mixer.music.stop()
def pause():
pygame.mixer.music.pause()
def unpause():
pygame.mixer.music.unpause()
Button1 = tkr.Button(music_player, width=5, height=3, font="Helvetica 12 bold", text="PLAY", command=play, bg="blue", fg="white")
Button2 = tkr.Button(music_player, width=5, height=3, font="Helvetica 12 bold", text="STOP", command=stop, bg="red", fg="white")
Button3 = tkr.Button(music_player, width=5, height=3, font="Helvetica 12 bold", text="PAUSE", command=pause, bg="purple", fg="white")
Button4 = tkr.Button(music_player, width=5, height=3, font="Helvetica 12 bold", text="UNPAUSE", command=unpause, bg="orange", fg="white")
var = tkr.StringVar()
song_title = tkr.Label(music_player, font="Helvetica 12 bold", textvariable=var)
song_title.pack()
Button1.pack(fill="x")
Button2.pack(fill="x")
Button3.pack(fill="x")
Button4.pack(fill="x")
play_list.pack(fill="both", expand="yes")
music_player.mainloop()

View File

@ -0,0 +1,2 @@
pygame
tkinter

View File

@ -0,0 +1,5 @@
## A program to fetch random quote or term related quote from internet
use following command to search quote related to a specific term or phrase
python scrape.py -q your_search_term -r yes

View File

@ -0,0 +1,35 @@
#import section
import requests
from bs4 import BeautifulSoup as bs
import argparse
from random import choice
# parser object to read cli content
parser = argparse.ArgumentParser()
parser.add_argument("-q", help="for search term")
parser.add_argument("-r", help="if you want one random quote")
args = parser.parse_args()
search_term = args.q
page = 1
# URl definition
url = f"https://www.brainyquote.com/search_results?q={search_term}&pg={page}"
# main program
r = requests.get(url)
soup = bs(r.content, "html.parser")
anchor1 = soup.find_all('a', {"class": "b-qt"})
anchor2 = soup.find_all('a', {"class": "bq-aut"})
if args.r != None:
quote = choice(
[f"{quote.text.strip()} - {author.text.strip()}" for quote, author in zip(anchor1, anchor2)])
print(quote)
else:
for i, (quote, author) in enumerate(zip(anchor1, anchor2)):
quote = quote.find('div').text.strip()
author = author.text.strip()
print(f"[{i}] : {quote} - {author}")

View File

@ -1,6 +1,11 @@
import random
import time
import sys
# print(""" ──────────────────██
# ▄───▄▀█▄▄▄▄
# ─ ▄▀─█▄▄
# ▄▄▄▀───▀▄
# ▀────────▀▀ """)
def start():
# story generated
@ -87,6 +92,7 @@ def random_select(rightpath):
if rightpath == str(select):
time.sleep(3)
print('good you went down the correct path and cheated death!!')
level2()
else:
time.sleep(3)
@ -94,9 +100,147 @@ def random_select(rightpath):
time.sleep(3)
print('and you have been shot multiple time and are now dead.')
def level2():
time.sleep(3)
print('You are running far away from the robots')
time.sleep(2)
print(""" ──────────────────██
""")
time.sleep(3)
print('and all of a sudden you see a cyborg in the distance')
time.sleep(2)
print("""░░░░░░░░░░░░░┌─────┐░░░░░░░░░░░░░░░░░░░░
""")
time.sleep(3)
print('he has been sent to capture you and take you back to the robots!!!')
time.sleep(3)
print('three items are infront of you ')
time.sleep(3)
print("a mech suit")
time.sleep(2)
print("""───────────▄▄▄▄▄▄▄▄▄───────────
""")
time.sleep(3)
print("tank")
time.sleep(2)
print("""░░░░░░███████ ]▄▄▄▄▄▄▄▄
I].
...
""")
time.sleep(3)
print('bomb')
time.sleep(2)
print("""´´´´´´´´´´´´´´´´´´´´´´´$¶´´´´´¶´´´´´¶¢
´´´´´´´´´´´´´´´´´´¢´´´´´´ø
´´´´´´´´´´´´´´ø´´´´´´´´ø´´øo
´´´´´´´´´´7´´´´´´´´´´´´´1´´´1´´´´1o
´´´´´´´´´´´´´´7´´´´´´´´1oø
´´´´´´´´´´´´´´´´´´1
´´´´´oø´´´´´´´´´´´´´´´´´´o$¢
´´´´´´´´´´´´´¢´´1ø´´´1
´´o´´´´´´´1$´´´
´´´´´´´´´´´´o´
´´´´´´
´´´
´´´´
´´´´´´
´´´´´´´
""")
items = input("which item do you choose - the mech suit, tank or bomb : ")
if (items == 'tank'):
time.sleep(3)
print('oh no the cyborg has ripped through the tank')
time.sleep(3)
print('you are running away to find safety')
time.sleep(3)
print('but the cyborg has seen you and captured you')
elif (items == 'bomb'):
time.sleep(3)
print('you throw the bomb and it exlodes')
time.sleep(3)
print('but it doesnt even lay a scratch on him')
time.sleep(3)
print('because he is made from vibranium')
time.sleep(3)
print('you are instantly captured now')
elif (items == "mech suit"):
time.sleep(3)
print('you are now in the mech suit')
time.sleep(3)
print('the cyborg is running towards you')
time.sleep(3)
print('this suit is highly advanced and gives you a ton of diffrent options')
time.sleep(3)
select_option = input("what would you like to use: rocket fist, missile, body slam: ")
if (select_option == "rocket fist"):
time.sleep(3)
print('good the cyborg is extremely disorientated')
time.sleep(3)
combat_moves = input("do you want to throw a right hook or head butt: ")
if (combat_moves == 'right hook'):
time.sleep(3)
print('wow your right hook to the cyborg was so DEVASTATING that it has killed him')
elif (combat_moves == 'head butt'):
time.sleep(3)
print('incredible your head butt has KNOCKED OUT the cyborg')
elif (select_option == 'missile'):
time.sleep(3)
print('oh no the cyborg is made from vibranium')
time.sleep(3)
print('the cyborg punches you and takes you back to the robots')
elif (select_option == 'body slam'):
time.sleep(3)
print('the cyborg has been knocked unconsious good job')
time.sleep(3)
print('u have enough time to run')
# option to play again at completion of game
play_again = "yes"

View File

@ -1,6 +1,8 @@
# Fetching System Information
This is a simple script that fetches system information for your system.(Windows)
## Improvements
Script for fetching all systems information
## Usage
1. Clone the repo
2. Run python script.py

View File

@ -0,0 +1,8 @@
# Youtube Channel Info
This is a simple script that fetches info about a youtube channel.
## Usage
- Clone the repo
- download the requirements
- add the api key and channel id
- run python script.py

View File

@ -0,0 +1,18 @@
from googleapiclient.discovery import build
youtube = build('youtube', 'v3',
developerKey='Enter API key')
ch_request = youtube.channels().list(
part='statistics',
id='Enter Channel ID')
ch_response = ch_request.execute()
sub = ch_response['items'][0]['statistics']['subscriberCount']
vid = ch_response['items'][0]['statistics']['videoCount']
views = ch_response['items'][0]['statistics']['viewCount']
print("Total Subscriber:- ", sub)
print("Total Number of Videos:- ", vid)
print("Total Views:- ", views)