Skip to content

Instantly share code, notes, and snippets.

View kengoon's full-sized avatar
:octocat:
Awake to steal

Kenechukwu Akubue kengoon

:octocat:
Awake to steal
View GitHub Profile
<?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" />
@kengoon
kengoon / main.py
Created March 23, 2020 12:30
the que
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):
@kengoon
kengoon / calc.kv
Created October 12, 2020 21:02 — forked from tshirtman/calc.kv
BoxLayout:
orientation: 'vertical'
Label:
size_hint_y: None
height: '50dp'
id: calc
text: ''
GridLayout:
cols: 4
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,
@kengoon
kengoon / m_cardtextfield.py
Created January 10, 2021 10:51
Card TextField with icon
"""
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
@kengoon
kengoon / install-pygtk.sh
Created January 19, 2021 04:34 — forked from mehcode/install-pygtk.sh
Install pygtk inside of a virtualenv
# 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-$$"
@kengoon
kengoon / m_cardtextfield.py
Last active February 12, 2021 10:31
Kivy CardTextField
"""
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
@kengoon
kengoon / List-Of-Emergency-Telephone-Numbers
Created April 2, 2021 08:23 — forked from immujahidkhan/List-Of-Emergency-Telephone-Numbers
List of emergency telephone numbers JSON
[
{
"Country": {
"Name": "Afghanistan",
"ISOCode": "AF",
"ISONumeric": "4"
},
"Ambulance": {
"All": [
"112"
@kengoon
kengoon / ppa.sh
Created June 5, 2021 10:58
run ppa on parrot os and kali os
#!/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"
@kengoon
kengoon / iconfonts.py
Created June 11, 2021 12:27
create and use your own custom icon fonts(.css and .codepoint only!!)
import json
import re
import sys
from collections import OrderedDict
from kivy.compat import PY2
_register = OrderedDict()
if not PY2: