This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="eng"> | |
<head> | |
<!-- charset def --> | |
<meta charset="utf-8"> | |
<!-- make responsive --> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- title --> | |
<title>About me</title> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="eng"> | |
<head> | |
<!-- charset def --> | |
<meta charset="utf-8"> | |
<!-- make responsive --> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- link css --> | |
<link rel="stylesheet" href="css/about_styles.css"> | |
<!-- normalise css --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// BEFORE LOAD | |
window.fbAsyncInit = function() { | |
FB.init({ | |
appId : '345613179594716', | |
autoLogAppEvents : true, | |
xfbml : true, | |
version : 'v3.0' | |
}); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// BEFORE LOAD | |
window.fbAsyncInit = function() { | |
FB.init({ | |
appId : '345613179594716', | |
autoLogAppEvents : true, | |
xfbml : true, | |
version : 'v3.0' | |
}); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- header content here --> | |
</head> | |
<body> | |
<section class="jumbotron"> | |
<!-- jumbotron content --> | |
</section> | |
<section class="someOtherSection"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<!-- <link rel="stylesheet" href="../css/styles.css"> --> | |
<!-- NOTE: | |
All i needed was to disable this line. let me explain why. | |
you are calling ../css/styles.css | |
the term `..` referrs to the folder 1 level above in the tree. | |
your tree looks like this: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# METHODS | |
def greeting #greeting to the user | |
puts "\n\n" | |
puts "Welcome to my first Ruby program." | |
puts "--" * 25 | |
end | |
def userName #user identification | |
puts "Please enter your name:" | |
name = gets.chomp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# METHODS | |
def greeting #greeting to the user | |
puts "\n\n" | |
puts "Welcome to my first Ruby program." | |
puts "--" * 25 | |
end | |
def userName #user identification | |
puts "Please enter your name:" | |
name = gets.chomp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#methods | |
def favFoods(runs) | |
food_array = [] | |
runs.times do | |
# get info > store > hash | |
# get food name | |
puts "Name a favourite food." | |
f_name = gets.chomp | |
# food_array[:food_name] << gets.chomp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Cat | |
#attr handler | |
attr_reader :color, :breed | |
attr_accessor :name | |
#init method | |
def initialize(color, breed) | |
@color = color | |
@breed = breed | |
@hungry = true | |
end |
OlderNewer