Use cythonize --build cysleep.pyx
After building, run python main.py
| #include <SoftPWM.h> | |
| #include <SPI.h> | |
| #include "MFRC522.h" | |
| #include "demux.h" | |
| #define DEBUG false | |
| //#define DEBUG true | |
| #define MAX_UIDS 12 | |
| #define MAX_ATTEMPTS 3 |
| #include <SoftPWM.h> | |
| #include <SPI.h> | |
| #include "MFRC522.h" | |
| #include "demux.h" | |
| #define DEBUG false | |
| //#define DEBUG true | |
| #define MAX_UIDS 12 | |
| #define MAX_ATTEMPTS 3 |
| import math | |
| from kivy.core.window import Window | |
| from kivy.graphics.transformation import Matrix | |
| from kivy.vector import Vector | |
| CALIBRATION_MATRIX = Matrix() | |
| # Calibration angle: -1.5758043422592645 | |
| # Calibration scale: [1.373241596109775, -1.040252303237079] |
| import math | |
| from kivy.graphics.transformation import Matrix | |
| from kivy.vector import Vector | |
| CALIBRATION_MATRIX = Matrix() | |
| # Calibration angle: -1.5758043422592645 | |
| # Calibration scale: [1.373241596109775, -1.040252303237079] | |
| touches = [ |
| # 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 |