This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config.ru | |
# The Rack::TryStatic middleware delegates requests to Rack::Static middleware | |
# trying to match a static file | |
# | |
# Inspired by original code from rack-contrib | |
# http://github.com/rack/rack-contrib/blob/master/lib/rack/contrib/try_static.rb | |
# | |
module Rack |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module CodeRetreat | |
open Xunit | |
type Cell = | |
| DeadCell of int | |
| LiveCell of int | |
let hasChanceToLife (cell:Cell) = | |
match cell with |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Recursively diff two hashes, showing only the differing values. | |
# By Henrik Nyh <http://henrik.nyh.se> 2009-07-14 under the MIT license. | |
# | |
# Example: | |
# | |
# a = { | |
# "same" => "same", | |
# "diff" => "a", | |
# "only a" => "a", | |
# "nest" => { |
OlderNewer