Skip to content

Instantly share code, notes, and snippets.

@Fak3
Fak3 / high_label.py
Created June 16, 2016 18:10
Issue with kv Builder - <HighLabel> rule does not override defined <Label> properies
from kivy.lang import Builder
from kivy.uix.label import Label
Builder.load_string('''
<HighLabel>:
text: 'height dp(40)'
height: dp(40)
''')
@Fak3
Fak3 / cbr_soap.py
Created March 16, 2016 16:18
cbr_soap.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from __future__ import print_function
from datetime import datetime, timedelta
from dateutil.parser import parse as parse_dt
from suds.client import Client
from suds.xsd.doctor import Import, ImportDoctor
@Fak3
Fak3 / manual.md
Last active August 29, 2015 14:19 — forked from laanwj/manual.md

SynthV1 manual

synthv1 is an old-school all-digital 4-oscillator subtractive polyphonic synthesizer with stereo fx. It is developed by rncbc aka Rui Nuno Capela.

The synthesizer consists of two identical "synths" with each two oscillators and associated filters and envelope controls. The outputs of these synths are mixed together for the final output.

Synth modules

@Fak3
Fak3 / choices.py
Last active October 8, 2015 21:58
Choices without metaclass
import inspect
#y
class Choice(object):
def __init__(self):
self._data = []
for name, value in inspect.getmembers(self):
if not name.startswith("_") and not inspect.isfunction(value):
if isinstance(value,tuple) and len(value) > 1:
data = value