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
<?xml version="1.0" encoding="UTF-8"?> | |
<module type="PYTHON_MODULE" version="4"> | |
<component name="NewModuleRootManager"> | |
<content url="file://$MODULE_DIR$" /> | |
<orderEntry type="jdk" jdkName="Python 3.8 (venv)" jdkType="Python SDK" /> | |
<orderEntry type="sourceFolder" forTests="false" /> | |
</component> | |
<component name="PyDocumentationSettings"> | |
<option name="format" value="EPYTEXT" /> | |
<option name="myDocStringFormat" value="Epytext" /> |
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
class The_Que: | |
elements = [7, 4, 8, 9, 0] | |
elements2 = [7, 4, 8, 9, 0] | |
elements3 = [7, 4, 8, 9, 0] | |
# print(elements + [10]) | |
# the below code are prototype | |
def insert_front(self, x): |
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
BoxLayout: | |
orientation: 'vertical' | |
Label: | |
size_hint_y: None | |
height: '50dp' | |
id: calc | |
text: '' | |
GridLayout: | |
cols: 4 |
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
from kivy.lang.builder import Builder | |
from kivy.metrics import dp | |
from kivymd.uix.boxlayout import MDBoxLayout | |
from kivymd.uix.button import MDIconButton | |
from kivymd.uix.behaviors import RectangularElevationBehavior | |
from kivy.properties import ( | |
StringProperty, | |
BooleanProperty, | |
ListProperty, | |
NumericProperty, |
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
""" | |
M_CardTextField | |
""" | |
__all__ = ("M_CardTextField",) | |
from kivy.lang.builder import Builder | |
from kivy.metrics import dp | |
from kivymd.theming import ThemableBehavior | |
from kivymd.uix.boxlayout import MDBoxLayout | |
from kivymd.uix.button import MDIconButton |
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
# Ensure we're in a virtualenv. | |
if [ "$VIRTUAL_ENV" == "" ] | |
then | |
echo "ERROR: not in a virtual environment." | |
exit -1 | |
fi | |
# Setup variables. | |
CACHE="/tmp/install-pygtk-$$" |
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
""" | |
M_CardTextField | |
""" | |
__all__ = ("M_CardTextField",) | |
from kivy.lang.builder import Builder | |
from kivy.metrics import dp | |
from kivymd.theming import ThemableBehavior | |
from kivymd.uix.boxlayout import MDBoxLayout | |
from kivymd.uix.button import MDIconButton |
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
[ | |
{ | |
"Country": { | |
"Name": "Afghanistan", | |
"ISOCode": "AF", | |
"ISONumeric": "4" | |
}, | |
"Ambulance": { | |
"All": [ | |
"112" |
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
#!/bin/bash | |
if [ $# -eq 1 ] | |
NM=`uname -a && date` | |
NAME=`echo $NM | md5sum | cut -f1 -d" "` | |
then | |
ppa_name=`echo "$1" | cut -d":" -f2 -s` | |
if [ -z "$ppa_name" ] | |
then | |
echo "PPA name not found" | |
echo "Utility to add PPA repositories in your debian machine" |
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
import json | |
import re | |
import sys | |
from collections import OrderedDict | |
from kivy.compat import PY2 | |
_register = OrderedDict() | |
if not PY2: |
OlderNewer