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.app import App | |
from kivy.uix.effectwidget import AdvancedEffectBase | |
from kivy.lang import Builder | |
from kivy.properties import NumericProperty | |
KV = ''' | |
#:import Scanlines kivy.uix.effectwidget.ScanlinesEffect | |
#:import VerticalBlur kivy.uix.effectwidget.VerticalBlurEffect | |
#:import HorizontalBlur kivy.uix.effectwidget.HorizontalBlurEffect | |
#:import FXAA kivy.uix.effectwidget.FXAAEffect |
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 webbrowser | |
from functools import cache | |
import numpy as np | |
import numpy.linalg as lin | |
from geopy.geocoders import Nominatim | |
@cache |
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
[app] | |
# (str) Title of your application | |
title = Kpritz | |
# (str) Package name | |
package.name = Kpritz | |
# (str) Package domain (needed for android/ios packaging) | |
package.domain = fr.tshirtman.kpritz |
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
# adapted from https://github.com/dpapathanasiou/pdfminer-layout-scanner | |
from os.path import exists | |
from tempfile import mkdtemp, mkstemp | |
from shutil import rmtree | |
from binascii import b2a_hex | |
from os import write, close | |
from threading import Thread | |
from pdfminer.pdfpage import PDFPage |
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.app import App | |
from kivy.lang import Builder | |
from kivy.clock import Clock | |
from kivy import properties as P | |
KV = ''' | |
#:import chain itertools.chain | |
#:import sin math.sin | |
#:import pi math.pi |
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.app import App | |
from kivy.lang import Builder | |
from kivy.core.text import Text | |
from kivy.clock import mainthread | |
KV = ''' | |
TextInput: |
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.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>: |
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.graphics.texture import Texture | |
from kivy.graphics import Rectangle | |
from kivy.uix.widget import Widget | |
from kivy.app import App | |
class RadialGradient(App): | |
def build(self): | |
w = Widget() | |
center_color = 255, 255, 0 |
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
function! ShowWindowNumbers() | |
for i in range(1, winnr('$')) | |
" Get the buffer and window associated with this number | |
let bufnr = winbufnr(i) | |
let winid = win_getid(i) | |
let figlet_output = system('figlet -f small ' . i ) | |
let popup_content = split(figlet_output, "\n") | |
let popup_height = 5 | |
let popup_width = 8 | |
let row = win_screenpos(i)[0] + (winheight(i) - popup_height) / 2 |
NewerOlder