Skip to content

Instantly share code, notes, and snippets.

View fherbine's full-sized avatar
🏠
Working from home

Félix Herbinet fherbine

🏠
Working from home
View GitHub Profile
@tshirtman
tshirtman / main.py
Last active April 26, 2020 22:51
TextShadow example
from kivy.app import App
from kivy.uix.label import Label
from kivy.properties import ListProperty
class ShadowLabel(Label):
decal = ListProperty([0, 0])
tint = ListProperty([1, 1, 1, 1])
@fnky
fnky / ANSI.md
Last active July 20, 2024 14:21
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@Cheaterman
Cheaterman / qsort.py test.py
Created April 5, 2019 16:15
qsort.py test.py
$ cat qsort.py
def qsort(iterable, start=0, end=None):
if end is None:
end = len(iterable) - 1
if hasattr(iterable, 'encode'):
iterable = list(iterable)
if start >= end:
return iterable