Skip to content

Instantly share code, notes, and snippets.

View kemiller's full-sized avatar

Ken Miller kemiller

  • SF Bay Area
View GitHub Profile

I hereby claim:

  • I am kemiller on github.
  • I am seriousken (https://keybase.io/seriousken) on keybase.
  • I have a public key whose fingerprint is F9F3 4D76 6FCF DAC5 0570 D680 0276 B4A1 84E9 A5FD

To claim this, I am signing this object:

{
@kemiller
kemiller / dns_guru_motion.rb
Created July 14, 2013 20:15
Gem converted for rubymotion.
includes = %w(dns_guru/matcher dns_guru/pattern dns_guru/request_mixin dns_guru/controller_mixin)
if defined?(Motion::Project::App)
Motion::Project::App.setup do |app|
includes.each do |file|
app.files << File.join(File.dirname(__FILE__), file)
end
end
require 'dns_guru/matcher'
require 'dns_guru/pattern'
require 'dns_guru/request_mixin'
require 'dns_guru/controller_mixin'
import Data.List (intersperse)
import System.IO (stdout, hFlush)
import System.Exit (exitSuccess)
--
-- Users
--
data User = X | O
deriving(Show, Eq)
#!/usr/bin/env ruby
# Represents the state of a single game, including the board, the current player,
# and the winner, if any.
#
class Game
def initialize(first_player)
@current_player = first_player