Skip to content

Instantly share code, notes, and snippets.

View thilo11's full-sized avatar

Thilo Horstmann thilo11

  • Hamburg
View GitHub Profile
@thilo11
thilo11 / pop-pg.swift
Created September 18, 2015 16:19
The Xcode 7 playground for the Swift Meetup "Protocol-Oriented Programming in Swift" http://www.meetup.com/de/Swift-Meetup-Hamburg/events/224604913/
import XCPlayground
import Foundation
// in Xcode 7 use Editor/Show Rendered Markup to display the formatted comments
//: # First things first: The Protocols
//: It is good Swift practice to start with your protocols
//: Instead of a common base classes we define protocols
protocol Hardware {
var name: String {get}
@thilo11
thilo11 / debug.clj
Last active January 3, 2016 13:49 — forked from khinsen/debug.clj
;; Slightly enhanced version of Alex Osborne's debug-repl (http://gist.github.com/252421)
;; Typing () quits the debug REPL, making it possible to continue without terminating the
;; input stream by typing Ctrl-D.
;; Inspired by George Jahad's version: http://georgejahad.com/clojure/debug-repl.html
;; (.setDynamic #'*locals*) added
(ns debug
[:require clojure.main])