Skip to content

Instantly share code, notes, and snippets.

@jsedwards
jsedwards / index.html
Last active December 26, 2015 11:19 — forked from dbc-challenges/index.html
DBC Phase 2 Practice Assessment Part 3
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="http://cdn.jsdelivr.net/normalize/2.1.0/normalize.css">
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:100,900">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css">
</head>
class Vehicle
attr_reader :color
def initialize(args)
@color = args[:color]
end
def brake
@status = :stopped
end
def drive
@status = :driving
@jsedwards
jsedwards / README.md
Created September 27, 2013 15:41 — forked from labe/README.md

##Getting started

  • Fork this gist
  • Clone your forked copy onto your local machine
  • Open the files in your text editor
  • $ ruby tests.rb

##Procedure

  • Read the error message
puts 'Hello there, and what\'s your first name?'
first_name = gets.chomp
puts 'What about your middle name?'
middle_name = gets.chomp
puts 'And your last name?'
last_name = gets.chomp
full_name = first_name+' '+middle_name+' '+last_name
puts 'Your name is ' + full_name+'? What a lovely name!'
puts 'Pleased to meet you, ' + full_name + '. :)'
puts "Did you know there are #{first_name.length + middle_name.length + last_name.length} letters in your name?"