Skip to content

Instantly share code, notes, and snippets.

View DavidSteuber's full-sized avatar

David Steuber DavidSteuber

View GitHub Profile
@DavidSteuber
DavidSteuber / EightQueens
Created June 13, 2015 09:52
A Swift 2 Program That Finds The 92 Distinct Solutions To The Eight Queens Puzzle
//
// main.swift
// EightQueens
//
// Created by David Steuber on 6/12/15.
// Copyright © 2015 David Steuber. Donated to the Public Domain.
//
//: Find all solutions to the "Eight Queens Puzzle"
//
// http://en.wikipedia.org/wiki/Eight_queens_puzzle
@DavidSteuber
DavidSteuber / SmyrnaQR
Last active March 23, 2018 13:48
Placing a logo image inside a QR Code
//
// main.swift
// SmyrnaQR
//
// Created by David Steuber on 5/14/15.
// Copyright (c) 2015 David Steuber.
//
import Foundation
import QuartzCore
@DavidSteuber
DavidSteuber / QRKoan.main.swift
Last active August 29, 2015 14:20
QRKoan main.swift
//
// main.swift
// QRKoan
//
// Created by David Steuber on 4/28/15.
// Copyright (c) 2015 David Steuber.
//
// Create a Quick Response code that contains a representation of itself
// by looking for a "zero point". What would be really cool is to create
// a QR code that represents a PNG file representing that QR code.