Use cythonize --build cysleep.pyx
After building, run python main.py
set completeopt=popup,menuone | |
set incsearch | |
set modeline | |
set mouse=a | |
set omnifunc=syntaxcomplete#Complete | |
set scrolloff=999 | |
set shell=/bin/bash | |
set showcmd | |
set signcolumn=yes | |
set tags+=,.git/tags,~/Dev/Kivy/kivy/tags |
export function selectFile(mimeTypes: string[] = [], multiple: boolean = false) { | |
return new Promise<FileList | null>((resolve, reject) => { | |
const input = document.createElement('input') | |
input.type = 'file' | |
input.multiple = multiple | |
if (mimeTypes.length) { | |
input.accept = mimeTypes.join(', ') | |
} |
from kivy.animation import Animation | |
from kivy.app import App | |
from kivy.lang import Builder | |
from kivy.properties import AliasProperty, ColorProperty, NumericProperty | |
from kivy.uix.effectwidget import AdvancedEffectBase, EffectWidget | |
class TangentGradient(AdvancedEffectBase): | |
def __init__(self, *args, **kwargs): | |
super().__init__(*args, **kwargs) |
import collections | |
import re | |
text = ''' | |
20. Miguel ReC FIN 30,39 31 | |
21. Mz FIN 30,40 29,5 | |
21. kuiva FIN FIN 30,40 29,5 | |
23. MozMan H K GBR 30,48 27,5 | |
23. oizo! SWE 30,48 27,5 | |
25. Jalli FBE NOR 30,49 25,5 |
chunks = [ | |
'He', | |
'llo', | |
', W', | |
'orl', | |
'd!\nA', | |
'nd h', | |
'ap', | |
'py ', | |
'Pyth', |
from kivy.app import App | |
from kivy.lang import Builder | |
from kivy.properties import ( | |
BooleanProperty, | |
ListProperty, | |
StringProperty, | |
) | |
from kivy.uix.boxlayout import BoxLayout |
import sys | |
class UndefinedNameLogger: | |
def __getattr__(self, name): | |
print(f'{name} not found in module {__name__}') | |
sys.modules[__name__] = UndefinedNameLogger() |
This is the human shader from https://humanshader.com/ implemented in GLSL using Kivy.
import re | |
import httpx | |
from bs4 import BeautifulSoup | |
EMAIL = '[email protected]' | |
USER_AGENT = ( | |
'Mozilla/5.0 (X11; Linux x86_64; rv:99.0) ' | |
'Gecko/20100101 Firefox/99.0' | |
) |