Skip to content

Instantly share code, notes, and snippets.

"""
#1
Count the number of times a depth measurement increases
from the previous measurement.
(There is no measurement before the first measurement.)
#2
Count the number of times the sum of measurements in a
3 measurement sliding window increases
"""

Keybase proof

I hereby claim:

  • I am steph-harris on github.
  • I am stephharris21 (https://keybase.io/stephharris21) on keybase.
  • I have a public key ASChKFnWHK0_kBQpOV46gN2CsAF3v-5GjY2a2-XnBwjMlQo

To claim this, I am signing this object:

<section id="Contact">
<h2>Contact Info</h2>
<p><strong>Mailing Address:</strong><br>
133 Arlington Ave <br> Somerset, NJ 08873</p>
<p><strong>Email: </strong>Steph.harris21@gmail.com</p>
<p><strong>Cell Number:</strong> 908-616-8505</p>
<p><strong>Social Media:</strong>
<ul>
<li><a href="https://www.linkedin.com/in/stephharris21"> LinkedIn </a></li>
<li><a href="https://github.com/Steph-harris"> Github </a></li>
<!DOCTYPE html>
<html>
<head>
<title>SampleApp</title>
<%= stylesheet_link_tag 'default', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'default', 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %>
</head>
<body>
<h1>Welcome to Steph's Knickknacks</h1>
@Steph-harris
Steph-harris / cat.rb
Created August 13, 2015 20:35
Ex. 25
class Pet
attr_reader :color, :breed
attr_accessor :name
def initialize(color, breed)
@color = color
@breed = breed
@hungry = true
end
def feed(food)
puts "Mmmm," + food + "!"
class Cat
attr_reader :color, :breed
attr_accessor :name
def initialize(color, breed)
@color = color
@breed = breed
@hungry = true
end
def feed(food)
puts "Mmmm," + food + "!"
def fav_foods
food_array = [] #or Array.new
3.times do
puts "Name a favorite food."
food_array << gets.chomp
end
p food_array
puts "Your favorite foods are #{food_array.join(", ")}."
food_array.each do |food|
puts "I like #{food} too!"
if "clams" == "clams"
puts "this is true"
else
puts "this is false"
end
@Steph-harris
Steph-harris / program.rb
Created August 4, 2015 05:52
Ex. 21 Ruby
def greeting
puts "Please enter your name:"
name = gets.chomp
puts "Hello" + " " + name
end
greeting
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Stephanie Harris Web</title>
<!-- Bootstrap core CSS -->
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,600' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Lora' rel='stylesheet' type='text/css'>
<!-- Custom styles for this template go here -->