-
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.
- Loading branch information
Showing
94 changed files
with
480 additions
and
171 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,3 @@ | ||
# ENV Reader | ||
|
||
Reads and helps manage .env file. |
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,124 @@ | ||
from PyQt5 import QtCore, QtGui, QtWidgets | ||
|
||
|
||
class Ui_MainWindow(object): | ||
def setupUi(self, MainWindow): | ||
MainWindow.setObjectName("MainWindow") | ||
MainWindow.resize(800, 600) | ||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) | ||
sizePolicy.setHorizontalStretch(0) | ||
sizePolicy.setVerticalStretch(0) | ||
sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth()) | ||
MainWindow.setSizePolicy(sizePolicy) | ||
MainWindow.setLayoutDirection(QtCore.Qt.LeftToRight) | ||
self.centralwidget = QtWidgets.QWidget(MainWindow) | ||
self.centralwidget.setObjectName("centralwidget") | ||
self.Message = QtWidgets.QLabel(self.centralwidget) | ||
self.Message.setGeometry(QtCore.QRect(130, 90, 511, 71)) | ||
self.Message.setStyleSheet("color: red;\n" | ||
"border: 1px solid red;\n" | ||
"border-radius: 8px;\n" | ||
"background-color: rgba(245, 72, 66, 0.5);") | ||
self.Message.setAlignment(QtCore.Qt.AlignCenter) | ||
self.Message.setObjectName("Message") | ||
self.title = QtWidgets.QLabel(self.centralwidget) | ||
self.title.setGeometry(QtCore.QRect(250, 10, 241, 71)) | ||
font = QtGui.QFont() | ||
font.setFamily("Montserrat ExtraLight") | ||
font.setPointSize(28) | ||
self.title.setFont(font) | ||
self.title.setAlignment(QtCore.Qt.AlignCenter) | ||
self.title.setObjectName("title") | ||
self.gridLayoutWidget = QtWidgets.QWidget(self.centralwidget) | ||
self.gridLayoutWidget.setGeometry(QtCore.QRect(130, 210, 521, 131)) | ||
self.gridLayoutWidget.setObjectName("gridLayoutWidget") | ||
self.gridLayout = QtWidgets.QGridLayout(self.gridLayoutWidget) | ||
self.gridLayout.setSizeConstraint(QtWidgets.QLayout.SetMinAndMaxSize) | ||
self.gridLayout.setContentsMargins(0, 0, 0, 0) | ||
self.gridLayout.setSpacing(0) | ||
self.gridLayout.setObjectName("gridLayout") | ||
self.lineEdit_3 = QtWidgets.QLineEdit(self.gridLayoutWidget) | ||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) | ||
sizePolicy.setHorizontalStretch(0) | ||
sizePolicy.setVerticalStretch(0) | ||
sizePolicy.setHeightForWidth(self.lineEdit_3.sizePolicy().hasHeightForWidth()) | ||
self.lineEdit_3.setSizePolicy(sizePolicy) | ||
self.lineEdit_3.setObjectName("lineEdit_3") | ||
self.gridLayout.addWidget(self.lineEdit_3, 2, 1, 1, 1) | ||
self.lineEdit_5 = QtWidgets.QLineEdit(self.gridLayoutWidget) | ||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) | ||
sizePolicy.setHorizontalStretch(0) | ||
sizePolicy.setVerticalStretch(0) | ||
sizePolicy.setHeightForWidth(self.lineEdit_5.sizePolicy().hasHeightForWidth()) | ||
self.lineEdit_5.setSizePolicy(sizePolicy) | ||
self.lineEdit_5.setStyleSheet("") | ||
self.lineEdit_5.setObjectName("lineEdit_5") | ||
self.gridLayout.addWidget(self.lineEdit_5, 1, 0, 1, 1) | ||
self.lineEdit_2 = QtWidgets.QLineEdit(self.gridLayoutWidget) | ||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) | ||
sizePolicy.setHorizontalStretch(0) | ||
sizePolicy.setVerticalStretch(0) | ||
sizePolicy.setHeightForWidth(self.lineEdit_2.sizePolicy().hasHeightForWidth()) | ||
self.lineEdit_2.setSizePolicy(sizePolicy) | ||
self.lineEdit_2.setSizeIncrement(QtCore.QSize(0, 0)) | ||
self.lineEdit_2.setStyleSheet("") | ||
self.lineEdit_2.setObjectName("lineEdit_2") | ||
self.gridLayout.addWidget(self.lineEdit_2, 1, 1, 1, 1) | ||
self.lineEdit_4 = QtWidgets.QLineEdit(self.gridLayoutWidget) | ||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) | ||
sizePolicy.setHorizontalStretch(0) | ||
sizePolicy.setVerticalStretch(0) | ||
sizePolicy.setHeightForWidth(self.lineEdit_4.sizePolicy().hasHeightForWidth()) | ||
self.lineEdit_4.setSizePolicy(sizePolicy) | ||
self.lineEdit_4.setStyleSheet("") | ||
self.lineEdit_4.setObjectName("lineEdit_4") | ||
self.gridLayout.addWidget(self.lineEdit_4, 2, 0, 1, 1) | ||
self.label = QtWidgets.QLabel(self.gridLayoutWidget) | ||
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) | ||
sizePolicy.setHorizontalStretch(0) | ||
sizePolicy.setVerticalStretch(0) | ||
sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth()) | ||
self.label.setSizePolicy(sizePolicy) | ||
font = QtGui.QFont() | ||
font.setFamily("Montserrat Light") | ||
font.setPointSize(10) | ||
self.label.setFont(font) | ||
self.label.setAlignment(QtCore.Qt.AlignCenter) | ||
self.label.setObjectName("label") | ||
self.gridLayout.addWidget(self.label, 0, 0, 1, 1) | ||
self.label_2 = QtWidgets.QLabel(self.gridLayoutWidget) | ||
font = QtGui.QFont() | ||
font.setFamily("Montserrat Light") | ||
font.setPointSize(10) | ||
self.label_2.setFont(font) | ||
self.label_2.setObjectName("label_2") | ||
self.gridLayout.addWidget(self.label_2, 0, 1, 1, 1) | ||
MainWindow.setCentralWidget(self.centralwidget) | ||
self.menubar = QtWidgets.QMenuBar(MainWindow) | ||
self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 18)) | ||
self.menubar.setObjectName("menubar") | ||
MainWindow.setMenuBar(self.menubar) | ||
self.statusbar = QtWidgets.QStatusBar(MainWindow) | ||
self.statusbar.setObjectName("statusbar") | ||
MainWindow.setStatusBar(self.statusbar) | ||
|
||
self.retranslateUi(MainWindow) | ||
QtCore.QMetaObject.connectSlotsByName(MainWindow) | ||
|
||
def retranslateUi(self, MainWindow): | ||
_translate = QtCore.QCoreApplication.translate | ||
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow")) | ||
self.Message.setText(_translate("MainWindow", "Could not parse .env file")) | ||
self.title.setText(_translate("MainWindow", "ENV EDITOR")) | ||
self.label.setText(_translate("MainWindow", "KEY")) | ||
self.label_2.setText(_translate("MainWindow", "VALUE")) | ||
|
||
|
||
if __name__ == "__main__": | ||
import sys | ||
app = QtWidgets.QApplication(sys.argv) | ||
MainWindow = QtWidgets.QMainWindow() | ||
ui = Ui_MainWindow() | ||
ui.setupUi(MainWindow) | ||
MainWindow.show() | ||
sys.exit(app.exec_()) |
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,193 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>MainWindow</class> | ||
<widget class="QMainWindow" name="MainWindow"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>800</width> | ||
<height>600</height> | ||
</rect> | ||
</property> | ||
<property name="sizePolicy"> | ||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed"> | ||
<horstretch>0</horstretch> | ||
<verstretch>0</verstretch> | ||
</sizepolicy> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>MainWindow</string> | ||
</property> | ||
<property name="layoutDirection"> | ||
<enum>Qt::LeftToRight</enum> | ||
</property> | ||
<widget class="QWidget" name="centralwidget"> | ||
<widget class="QLabel" name="Message"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>130</x> | ||
<y>90</y> | ||
<width>511</width> | ||
<height>71</height> | ||
</rect> | ||
</property> | ||
<property name="styleSheet"> | ||
<string notr="true">color: red; | ||
border: 1px solid red; | ||
border-radius: 8px; | ||
background-color: rgba(245, 72, 66, 0.5);</string> | ||
</property> | ||
<property name="text"> | ||
<string>Could not parse .env file</string> | ||
</property> | ||
<property name="alignment"> | ||
<set>Qt::AlignCenter</set> | ||
</property> | ||
</widget> | ||
<widget class="QLabel" name="title"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>250</x> | ||
<y>10</y> | ||
<width>241</width> | ||
<height>71</height> | ||
</rect> | ||
</property> | ||
<property name="font"> | ||
<font> | ||
<family>Montserrat ExtraLight</family> | ||
<pointsize>28</pointsize> | ||
</font> | ||
</property> | ||
<property name="text"> | ||
<string>ENV EDITOR</string> | ||
</property> | ||
<property name="alignment"> | ||
<set>Qt::AlignCenter</set> | ||
</property> | ||
</widget> | ||
<widget class="QWidget" name="gridLayoutWidget"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>130</x> | ||
<y>210</y> | ||
<width>521</width> | ||
<height>131</height> | ||
</rect> | ||
</property> | ||
<layout class="QGridLayout" name="gridLayout"> | ||
<property name="sizeConstraint"> | ||
<enum>QLayout::SetMinAndMaxSize</enum> | ||
</property> | ||
<property name="spacing"> | ||
<number>0</number> | ||
</property> | ||
<item row="2" column="1"> | ||
<widget class="QLineEdit" name="lineEdit_3"> | ||
<property name="sizePolicy"> | ||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed"> | ||
<horstretch>0</horstretch> | ||
<verstretch>0</verstretch> | ||
</sizepolicy> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="1" column="0"> | ||
<widget class="QLineEdit" name="lineEdit_5"> | ||
<property name="sizePolicy"> | ||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed"> | ||
<horstretch>0</horstretch> | ||
<verstretch>0</verstretch> | ||
</sizepolicy> | ||
</property> | ||
<property name="styleSheet"> | ||
<string notr="true"/> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="1" column="1"> | ||
<widget class="QLineEdit" name="lineEdit_2"> | ||
<property name="sizePolicy"> | ||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed"> | ||
<horstretch>0</horstretch> | ||
<verstretch>0</verstretch> | ||
</sizepolicy> | ||
</property> | ||
<property name="sizeIncrement"> | ||
<size> | ||
<width>0</width> | ||
<height>0</height> | ||
</size> | ||
</property> | ||
<property name="styleSheet"> | ||
<string notr="true"/> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="2" column="0"> | ||
<widget class="QLineEdit" name="lineEdit_4"> | ||
<property name="sizePolicy"> | ||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed"> | ||
<horstretch>0</horstretch> | ||
<verstretch>0</verstretch> | ||
</sizepolicy> | ||
</property> | ||
<property name="styleSheet"> | ||
<string notr="true"/> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="0" column="0"> | ||
<widget class="QLabel" name="label"> | ||
<property name="sizePolicy"> | ||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed"> | ||
<horstretch>0</horstretch> | ||
<verstretch>0</verstretch> | ||
</sizepolicy> | ||
</property> | ||
<property name="font"> | ||
<font> | ||
<family>Montserrat Light</family> | ||
<pointsize>10</pointsize> | ||
</font> | ||
</property> | ||
<property name="text"> | ||
<string>KEY</string> | ||
</property> | ||
<property name="alignment"> | ||
<set>Qt::AlignCenter</set> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="0" column="1"> | ||
<widget class="QLabel" name="label_2"> | ||
<property name="font"> | ||
<font> | ||
<family>Montserrat Light</family> | ||
<pointsize>10</pointsize> | ||
</font> | ||
</property> | ||
<property name="text"> | ||
<string>VALUE</string> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</widget> | ||
</widget> | ||
<widget class="QMenuBar" name="menubar"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>800</width> | ||
<height>18</height> | ||
</rect> | ||
</property> | ||
</widget> | ||
<widget class="QStatusBar" name="statusbar"/> | ||
</widget> | ||
<resources/> | ||
<connections/> | ||
</ui> |
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 @@ | ||
# Rock Paper Scissors βββοΈ | ||
|
||
It is a simple game played usually by kids for fun or as a tie-breaker. π | ||
|
||
## Requirements and Dependencies | ||
|
||
Requirements are listed in [requirements.txt](./requirements.txt). | ||
|
||
```bash | ||
python3 -m venv venv | ||
source ./venv/bin/activate | ||
pip3 install -r requirements.txt | ||
|
||
python3 rps.py | ||
``` | ||
|
||
## Demo | ||
|
||
![Demo](./demo.gif) |
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,32 @@ | ||
<style> | ||
.rock { | ||
color: rgb(184, 68, 110); | ||
} | ||
.paper { | ||
color: rgb(217, 48, 67); | ||
} | ||
.scissors { | ||
color: rgb(112, 189, 53); | ||
} | ||
|
||
.bold { | ||
font-weight: bold; | ||
} | ||
|
||
.bold-italic { | ||
font-weight: bold; | ||
font-style: italic; | ||
} | ||
</style> | ||
|
||
<p>This is a very entertaining game that provides instant entertainment to users.</p> | ||
<p>This is a game that generates random output which is priority based.</p> | ||
<b style="color:red">Here:</b> | ||
<ul> | ||
<li><span class="rock bold-italic">Rock</span> wins <span class="scissors bold">scissors</span></li> | ||
<li><span class="scissors bold-italic">Scissors</span> wins <span class="paper bold">paper</span></li> | ||
<li><span class="paper bold-italic">Paper</span> wins <span class="rock bold">rock</span></li> | ||
</ul> | ||
v1.0.2 | ||
<br> | ||
Β© Shreyam Pokharel ππ |
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,11 @@ | ||
<p>This game does not require any mental skill! It is just random play!</p> | ||
<b>Some shortcuts:</b> | ||
<ul> | ||
<li>Ctrl + A = About Us</li> | ||
<li>Ctrl + H = Help</li> | ||
<li>Ctrl + R = Reset Game</li> | ||
<li>Ctrl + Q = Exit</li> | ||
</ul> | ||
<p> Use the three buttons for choosing rock, paper or scissors and | ||
play with the computer!</p> | ||
<h3>Best Of Luck! π</h3> |
File renamed without changes.
File renamed without changes.
Oops, something went wrong.