Skip to content

Instantly share code, notes, and snippets.

View stephanh42's full-sized avatar

Stephan Houben stephanh42

  • Heythuysen, The Netherlands
View GitHub Profile
import os
from IPython.qt.console.rich_ipython_widget import RichIPythonWidget
from IPython.qt.manager import QtKernelManager
from IPython.qt.inprocess import QtInProcessKernelManager
from IPython.kernel.zmq.ipkernel import Kernel
from IPython.kernel.inprocess.ipkernel import InProcessKernel
from IPython.lib import guisupport
@stephanh42
stephanh42 / collision-detection.rkt
Created November 28, 2012 19:14 — forked from jbclements/collision-detection.rkt
Unbelievably primitive image detection for 2htdp/image
#lang racket
(require 2htdp/image
(only-in mred make-bitmap bitmap-dc%)
(only-in 2htdp/private/image-more render-image)
rackunit)
(define star1 (star-polygon 40 5 2 "solid" "seagreen"))
(define star2 (rotate 20 (star-polygon 40 5 2 "solid" "seagreen")))