Skip to content

Instantly share code, notes, and snippets.

View harrisonmalone's full-sized avatar

Harrison Malone harrisonmalone

View GitHub Profile
# require 'pry-byebug'
# => one piece of ruby value
# strings
# integers
# floats
# booleans
# nil
# => storing multiple pieces of ruby value
# # a. Winner Predictor
# # Time to predict the winner!
# # Define a method called method_one.
# # It takes a string (as an argument), and then returns the string + " will be".
# # Define a method called method_two.
# # It takes a string, and returns the string + " the ultimate".
# everything in ruby is truthy apart from nil and false
# truthy
"string"
1
1.0
["hi"]
{hi: "hello"}
# falsy
# you are working at a bar where you have a current backlog of drinks to make:
# 3 party parrot cocktails
# 2 party parrot waters
# and
# 6 party parrot beers
# write a program that asks the customer for their order, you'll need to research the method gets to do this https://duckduckgo.com/?t=ffab&q=gets+ruby&ia=web
# if they order a party parrot cocktail, add one to the number of party parrot cocktails you need to make,
# if they order a party parrot water, add one to the number of party parrot waters you need to make,
# if they order a party parrot beer, add one to the number of party parrot beers you need to pour

Workbook One

Question 1

Research the development of the internet from 1980 to today. You must describe at least FIVE key events in the development of the internet. You can refer to events, people of significance, or technologies and how they have changed over time.


Tim Berners Lee was the man who created HTML and HTTP.

# quote_one = "sup dude"
# quote_two = "hello"
# quote_three = "good morning!"
# print quote_one
# doesn't give you a new line
# prints to terminal
# puts quote_two
# gives you a new line
x = 7
p "stars".class
x = 9
p x.class
puts "HIP" + "HOP"
# 1.
how a computer boots up
electricity
|
rom, bios
|
bios
|
checks if everything is okay, hardware
|
const axios = require('axios');
const requestBody = {
"listingType":"Rent",
"propertyTypes":[
"Townhouse",
"ApartmentUnitFlat"
],
"minBedrooms": 2,
"minPrice": 500,
{
"window.zoomLevel": 2,
"workbench.statusBar.visible": true,
"workbench.activityBar.visible": false,
"editor.minimap.enabled": false,
"breadcrumbs.enabled": false,
"workbench.colorTheme": "Monokai",
"workbench.startupEditor": "none",
"editor.wordWrap": "on",
"cSpell.enabledLanguageIds": [