Skip to content

Instantly share code, notes, and snippets.

View StephenFiser's full-sized avatar

Stephen Fiser StephenFiser

View GitHub Profile
Rails.application.routes.draw do
resources :todos
# a bunch of commented out code ...
end
class Animal
attr_accessor :name
attr_reader :size, :color
def initialize(name, size, color)
@name = name
@size = size
@color = color
end
class Dog
attr_accessor :name
attr_reader :size, :color
def initialize(name, size, color)
@name = name
@size = size
@color = color
end
class Dog
def initialize(name, size)
@name = name
@size = size
end
def bark
"Ruff"
end
#first h1 {
color: #60F3FF;
font-style: italic;
}
h1, h3, p {
font-family: Arial, sans-serif;
color: #3a3a3a;
}
body {
background-color: green;
}
<html>
<head>
<title>Learning CSS</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div id="first" class="content">
<h1>Hello everyone</h1>
<h3>Here is some less important text.</h3>
<p>Here is some text about nothing really.</p>
class Dog
def initialize(name, size)
@name = name
@size = size
end
def bark
"Ruff"
end
class Dog
def initialize(name, size)
@name = name
@size = size
end
def bark
"Ruff"
end