Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

My new branch #788

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -832,8 +832,8 @@
</a>
</td>
<td align="center">
<a href="https://github.com/kanchanraiii">
<img src="https://avatars.githubusercontent.com/u/114416916?v=4" width="100;" alt="kanchanraiii"/>
<a href="https://github.com/kanchanrai7">
<img src="https://avatars.githubusercontent.com/u/114416916?v=4" width="100;" alt="kanchanrai7"/>
<br />
<sub><b>Kanchan Rai</b></sub>
</a>
Expand Down Expand Up @@ -1320,8 +1320,8 @@
</a>
</td>
<td align="center">
<a href="https://github.com/amunjuluri">
<img src="https://avatars.githubusercontent.com/u/100225249?v=4" width="100;" alt="amunjuluri"/>
<a href="https://github.com/Anand-Munjuluri">
<img src="https://avatars.githubusercontent.com/u/100225249?v=4" width="100;" alt="Anand-Munjuluri"/>
<br />
<sub><b>Anand Munjuluri</b></sub>
</a>
Expand Down Expand Up @@ -2051,10 +2051,10 @@
</a>
</td>
<td align="center">
<a href="https://github.com/nebulaanish">
<img src="https://avatars.githubusercontent.com/u/50112251?v=4" width="100;" alt="nebulaanish"/>
<a href="https://github.com/NebulaAnish">
<img src="https://avatars.githubusercontent.com/u/50112251?v=4" width="100;" alt="NebulaAnish"/>
<br />
<sub><b>Balaram Neupane</b></sub>
<sub><b>Anish Neupane</b></sub>
</a>
</td>
<td align="center">
Expand Down Expand Up @@ -2316,10 +2316,10 @@
</a>
</td>
<td align="center">
<a href="https://github.com/abc-is-here">
<img src="https://avatars.githubusercontent.com/u/110215279?v=4" width="100;" alt="abc-is-here"/>
<a href="https://github.com/Abhay-Gupta008">
<img src="https://avatars.githubusercontent.com/u/110215279?v=4" width="100;" alt="Abhay-Gupta008"/>
<br />
<sub><b>Abc</b></sub>
<sub><b>Abhay-Gupta008</b></sub>
</a>
</td>
<td align="center">
Expand Down
2 changes: 1 addition & 1 deletion projects/Blind Auction/art.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
/_________\\
.-------------.
/_______________\\
'''
'''
43 changes: 20 additions & 23 deletions projects/Blind Auction/main.py
Original file line number Diff line number Diff line change
@@ -1,34 +1,31 @@
from replit import clear

# HINT: You can call clear() to clear the output in the console.
#HINT: You can call clear() to clear the output in the console.

from art import logo

print(logo)

bids = {}
bidding_finished = False


def find_highest_bidder(bidding_record):
highest_bid = 0
winner = ""
for bidder in bidding_record:
bid_amount = bidding_record[bidder]
if bid_amount > highest_bid:
highest_bid = bid_amount
winner = bidder
print(f"The winner is {winner} with a bid of ${highest_bid}.")

highest_bid = 0
winner = ""
for bidder in bidding_record:
bid_amount = bidding_record[bidder]
if bid_amount > highest_bid:
highest_bid = bid_amount
winner = bidder
print(f"The winner is {winner} with a bid of ${highest_bid}.")

while not bidding_finished:
name = input("What is your name? ")
bid = int(input("What is your bid? $"))
bids[name] = bid

should_continue = input("Are there any other bidders? Type 'yes' or 'no': ").lower()
if should_continue == "no":
find_highest_bidder(bids)
bidding_finished = True
elif should_continue == "yes":
clear()
name = input("What is your name? ")
bid = int(input("What is your bid? $"))
bids[name] = bid

should_continue = input("Are there any other bidders? Type 'yes' or 'no': ").lower()
if should_continue == "no":
find_highest_bidder(bids)
bidding_finished = True
elif should_continue == "yes":
clear()

68 changes: 34 additions & 34 deletions projects/Blind Auction/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 3 additions & 17 deletions projects/Browser/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,59 +5,45 @@
import sys


# Define the main window class
class MainWindow(QMainWindow):
def __init__(self):
super(MainWindow, self).__init__()

# Create a QWebEngineView widget
self.browser = QWebEngineView()
self.browser.setUrl(QUrl("http://www.google.com"))
self.setCentralWidget(self.browser)

# Show the window maximized
self.showMaximized()

# Create a navigation toolbar
navbar = QToolBar()
navbar.adjustSize()
self.addToolBar(navbar)

# Add a back button to the toolbar
back_btn = QAction("⮜", self)
back_btn.triggered.connect(self.browser.back)
navbar.addAction(back_btn)

# Add a forward button to the toolbar
forward_btn = QAction("⮞", self)
forward_btn.triggered.connect(self.browser.forward)
navbar.addAction(forward_btn)

# Add a reload button to the toolbar
reload_btn = QAction("⟳", self)
reload_btn.triggered.connect(self.browser.reload)
navbar.addAction(reload_btn)

# Add a URL bar to the toolbar
self.url_bar = QLineEdit()
self.url_bar.returnPressed.connect(self.open_url)
navbar.addWidget(self.url_bar)

# Update the URL bar when the browser URL changes
self.browser.urlChanged.connect(self.update_url)

# Load the URL entered in the URL bar
def open_url(self):
url = self.url_bar.text()
self.browser.setUrl(QUrl(url))

# Update the URL bar when the browser URL changes
def update_url(self, q):
self.url_bar.setText(q.toString())


# Create the application and main window
app = QApplication(sys.argv)

QApplication.setApplicationName("EFFLUX browser")

window = MainWindow()

app.exec_()
6 changes: 0 additions & 6 deletions projects/Chess/main.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
# import necessary dependencies
from sys import exit
import pygame

# initialize the game
pygame.init()

# display game
surface = pygame.display.set_mode((640, 640))
pygame.display.set_caption("Chess")

Expand All @@ -26,7 +23,6 @@
turn = 1


# define ValidMoveGenerator class
class ValidMoveGenerator(object):
def __init__(self):
self.vMoves = []
Expand Down Expand Up @@ -286,7 +282,6 @@ def sameColor(self, x, y, grid):
validMoveGen = ValidMoveGenerator()


# define Board class
class Board(object):
def __init__(self):
self.sqs = [[], [], [], [], [], [], [], []]
Expand Down Expand Up @@ -564,7 +559,6 @@ def notResultsInCheck(x1, y1, x2, y2):
return True


# define Event object
class Event(object):
def __init__(self):
self.selected = False
Expand Down
2 changes: 1 addition & 1 deletion projects/Diabetes Monitoring Dashboard/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openai==0.27.2
pandas==1.3.5
Requests==2.32.2
Requests==2.31.0
scikit_learn==1.2.1
streamlit==1.30.0
streamlit_lottie==0.0.5
27 changes: 27 additions & 0 deletions projects/Password Generator/password-generator.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import random

letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']
numbers = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
symbols = ['!', '#', '$', '%', '&', '(', ')', '*', '+']

print("Welcome to the PyPassword Generator!")
nr_letters= int(input("How many letters would you like in your password? "))
nr_symbols = int(input("How many symbols would you like? "))
nr_numbers = int(input("How many numbers would you like? "))

for random_letter in range(1, nr_letters + 1):
letter = random.sample(letters, nr_letters)

for random_symbol in range(1, nr_symbols + 1):
symbol = random.sample(symbols, nr_symbols)

for random_number in range(1, nr_numbers + 1):
number = random.sample(numbers, nr_numbers)

initial_password = letter + symbol + number
random_password = random.sample(initial_password, len(initial_password))

password_holder = ""

password = password_holder.join(random_password)
print(f"Here is your password: {password}")
14 changes: 14 additions & 0 deletions projects/Treasure Map/treasure-map.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
line1 = ["⬜️","️⬜️","️⬜️"] #x-coordinates are A, B, and C. While y-coordinates are 1, 2 and 3.
line2 = ["⬜️","⬜️","️⬜️"]
line3 = ["⬜️️","⬜️️","⬜️️"]
map = [line1, line2, line3]
print("Hiding your treasure! X marks the spot.")
position = input("Where do you want to put the treasure? ")

letter = position[0].upper()
coordinate_x = ["A", "B", "C"]
number_index = int(position[1]) - 1
letter_index = coordinate_x.index(letter)
map[number_index][letter_index] = "X"

print(f"{line1}\n{line2}\n{line3}")
2 changes: 1 addition & 1 deletion projects/movie-rater/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ idna==3.7
pydantic==2.4.2
pydantic_core==2.10.1
python-dotenv==1.0.0
requests==2.32.2
requests==2.31.0
sniffio==1.3.0
SQLAlchemy==2.0.21
starlette==0.36.2
Expand Down
Loading