Skip to content

Instantly share code, notes, and snippets.

View jonwright's full-sized avatar

Jon Wright jonwright

View GitHub Profile
##Some points to mention...
##
##The model knows nothing about the view or the controller.
##The view knows nothing about the controller or the model.
##The controller understands both the model and the view.
##
##The model uses observables, essentially when important data is changed,
##any interested listener gets notified through a callback mechanism.
##
##The following opens up two windows, one that reports how much money you
@adamnew123456
adamnew123456 / pyc.py
Last active October 31, 2023 11:39
Using Inline C Code In Python Programs
"""
Inserts C code directly into Python files, which can then be dynamically linked
in and called via ctypes.
"""
import atexit
import ctypes
import os
import shlex
import sys
import tempfile