Skip to content

Instantly share code, notes, and snippets.

View kulothunganug's full-sized avatar
🤓

Kulothungan U.G kulothunganug

🤓
View GitHub Profile
@cferdinandi
cferdinandi / terminal-cheat-sheet.txt
Last active July 22, 2024 20:51
Terminal Cheat Sheet
# Terminal Cheat Sheet
pwd # print working directory
ls # list files in directory
cd # change directory
~ # home directory
.. # up one directory
- # previous working directory
help # get help
-h # get help
@tshirtman
tshirtman / slowdown.py
Last active May 24, 2021 10:52
A Spinner/DropDown that opens progressively by animationg opacity of the items.
from kivy.uix.dropdown import DropDown
from kivy.app import App
from kivy.lang import Builder
from kivy.properties import NumericProperty
from kivy.animation import Animation
KV = '''
FloatLayout:
Spinner:
dropdown_cls: 'SlowDown'
@tshirtman
tshirtman / responsive_example.py
Last active June 23, 2024 01:55
Making a simple responsive app layout.
from kivy.app import App
from kivy.lang import Builder
from kivy.properties import OptionProperty
from kivy.core.window import Window
from kivy.factory import Factory
KV = '''
#:import A kivy.animation.Animation
<RLabel@Label>:
from datetime import datetime
from kivy.app import App
from kivy.lang import Builder
from kivy.factory import Factory
from kivy.properties import NumericProperty
from kivy.clock import Clock
KV = '''
#:import rgba kivy.utils.rgba
@el3
el3 / datepicker.py
Created August 30, 2020 23:59
datepicker for kivy
from kivy.app import App
from kivy.lang import Builder
from kivy.uix.boxlayout import BoxLayout
KV = """
#:import Calendar calendar.Calendar
<Day@Button>:
datepicker: self.parent.datepicker
color: [1,1,1,1]
@tshirtman
tshirtman / dock.py
Created April 17, 2021 10:52
using a shader to build a bottom dock for buttons with a circle opening in it
'''
'''
from kivy.app import App
from kivy.lang import Builder
from kivy.uix.widget import Widget
from kivy.core.window import Window
from kivy.graphics import RenderContext
from kivy import properties as P
@Guhan-SenSam
Guhan-SenSam / 1info.md
Last active May 19, 2024 18:59
Methods to Optimizing Kivy Performance

Many people state that kivy is slow. While this may be true it is mostly due to that python is slow to run on android devices.Thus it is in the programmer's hands to properly optimize their code so as to create a performant application.

Most of the lag on android devices runing kivy apps arise due to widget creation. Widget creation remains the slowest step in a kivy app. Here are some of the methods that I follow to optimize my apps and ensure I can hit 60fps even on old devices

Optimization Methods: