Skip to content

Instantly share code, notes, and snippets.

View reneemes's full-sized avatar

Renee Messersmith reneemes

  • 04:37 (UTC -05:00)
View GitHub Profile
@reneemes
reneemes / block_scope_examples.md
Created May 5, 2025 23:59 — forked from megstang/block_scope_examples.md
Block Scope Examples 14-19

Example 14

numbers = [1,2,3]
total = 0
numbers.each do |number|
  total += number
end

p total
@reneemes
reneemes / argument_scope_examples.md
Created May 5, 2025 23:59 — forked from megstang/argument_scope_examples.md
Argument Scope Examples 10-13

Example 10

def print_variable(x)
puts x
end

print_variable(4)
@reneemes
reneemes / method_scope_examples.md
Created May 5, 2025 23:57 — forked from megstang/method_scope_examples.md
Method Scope Examples 6-9

Example 6

def print_variable
  x = 10
  puts x
end
print_variable
puts x

Example 1

x = 10
puts x
puts y

Example 2

Steps to get a React App up and running

Create React App

Create React app:

npx create-react-app NAMEOFYOURAPP

To run your app:

@reneemes
reneemes / rails http status codes
Created September 21, 2024 18:10 — forked from mlanett/rails http status codes
HTTP status code symbols for Rails
HTTP status code symbols for Rails
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings.
Status Code Symbol
1xx Informational
100 :continue
101 :switching_protocols
102 :processing
@reneemes
reneemes / b2_intermission_work.md
Last active August 14, 2024 00:15 — forked from mikedao/b2_intermission_work.md
B2 Intermission Work Submission

B2 Intermission Work

Answer these Check for Understanding questions as you work through the assignments.

HTML

  1. What is HTML?
    Hyper Text Markup Language
  2. What is an HTML element?
    An element has a start tag, content, and an end tag.
  3. What is an HTML attribute?
    All elements have attributes. They provide information about elements. They are always found in the start tag.
  4. What is the difference between a class and an id? When would you use one vs. the other? Class can be used multiple times by multiple elements. ID can only be used by one specific HTML element within the page, can be used as a bookmark and refrenced later with an href.