Skip to content

Instantly share code, notes, and snippets.

View daz-codes's full-sized avatar

DAZ daz-codes

View GitHub Profile
@daz-codes
daz-codes / gist:3359802
Created August 15, 2012 12:37 — forked from ruprict/gist:3331587
Riddle
require 'sinatra'
require 'sass'
require 'slim'
get('/css/styles.css'){ scss :styles }
get '/' do
slim :index
end
@daz-codes
daz-codes / location_data.rb
Created December 2, 2024 23:09 — forked from therubyhound/location_data.rb
Advent of Code 2024, Day 1: ruby location_data.rb day_1.txt
require "minitest/autorun"
INPUT = DATA.read
class LocationDataTest < Minitest::Test
def test_total_distance
location_list = LocationData.new(INPUT)
assert_equal 11, location_list.total_distance
end