Skip to content

Instantly share code, notes, and snippets.

View christoph2's full-sized avatar
💭
Pushin' hard again! 😎

Christoph Schueler christoph2

💭
Pushin' hard again! 😎
  • Berlin / Germany
  • 01:34 (UTC +02:00)
View GitHub Profile
@christoph2
christoph2 / completer_example.py
Created March 20, 2024 04:51
PySide6 version of the QCompleter example.
##
## PySide6 version of the QCompleter example.
##
## "The Completer example shows how to provide string-completion facilities for an "
## "input widget based on data provided by a model."
##
import sys
@christoph2
christoph2 / KNXSchema.sql
Created September 15, 2016 14:25
KNX ETS4 Database Schema
This file has been truncated, but you can view the full file.
--------------------------------------------------------------------------------
-- [ApplProgsWithHashIssues]
--------------------------------------------------------------------------------
/** @file
ETS 4 Database Schema - table for ApplicationPrograms with possible invalid hashes after Upgrade from Schema 1.0 to 1.1
*/
-- MediumType --
@christoph2
christoph2 / KNXSchema.xsd
Created September 15, 2016 14:19
KNX ETS4 XML Schema
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:knx="http://knx.org/xml/project/11" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://knx.org/xml/project/11" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0">
<!-- Simple types -->
<xs:simpleType name="IDREF">
<xs:restriction base="xs:NCName"/>
</xs:simpleType>
<xs:simpleType name="IDREFS">
<xs:list itemType="knx:IDREF"/>
</xs:simpleType>
<xs:simpleType name="Capabilities_t">
@christoph2
christoph2 / winrand.py
Last active April 11, 2024 04:19
Cryptographically secure pseudo-random numbers (Windows only)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import ctypes
from ctypes import wintypes
import struct
PROV_RSA_FULL = 1
@christoph2
christoph2 / structureWithEnums.py
Last active July 4, 2024 21:46
Add missing enum feature to ctypes Structures.
import ctypes
import enum
#
# Prerequisits:
# -------------
# If you are using Python < 3.4 run `pip install enum34`.
#
# Problem Definition
# ------------------