Use cythonize --build cysleep.pyx
After building, run python main.py
# This is the output of "sudo lighttpd -f /etc/lighttpd/lighttpd.conf -p > /tmp/lighttpd.full.conf" | |
# With website domain name replaced with <website> (subdomain preserved for debugging purposes) | |
config { | |
var.CWD = "/var/www/erp" | |
var.PID = 1056149 | |
mimetype.assign = ( | |
".cwl.json" => "application/cwl+json", | |
".sarif.json" => "application/sarif+json", | |
".sarif-external-properties.json" => "application/sarif-external-properties+json", | |
".spdx.json" => "application/spdx+json", |
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.