Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Diogo Gomes Alphabetus

🎯
Focusing
View GitHub Profile
View about.html
<!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>
View about.html
<!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 -->
View scripts.js
// BEFORE LOAD
// Facebook
window.fbAsyncInit = function() {
FB.init({
appId : '345613179594716',
autoLogAppEvents : true,
xfbml : true,
version : 'v3.0'
});
};
View scripts.js
// BEFORE LOAD
// Facebook
window.fbAsyncInit = function() {
FB.init({
appId : '345613179594716',
autoLogAppEvents : true,
xfbml : true,
version : 'v3.0'
});
};
@Alphabetus
Alphabetus / index.html
Created Dec 21, 2018
style p isolated anywhere.
View index.html
<!DOCTYPE html>
<html>
<head>
<!-- header content here -->
</head>
<body>
<section class="jumbotron">
<!-- jumbotron content -->
</section>
<section class="someOtherSection">
@Alphabetus
Alphabetus / index.html
Last active Dec 26, 2018
html1.2 >> notes made for ckaltenbach904
View index.html
<!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:
@Alphabetus
Alphabetus / program.rb
Created Jan 4, 2019
basic input program in ruby
View program.rb
# 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
@Alphabetus
Alphabetus / program-1.rb
Created Jan 4, 2019
Commit for exercise 3.2
View program-1.rb
# 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
@Alphabetus
Alphabetus / fav_foods.rb
Created Jan 4, 2019
Commit for exercise 3.3
View fav_foods.rb
#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
@Alphabetus
Alphabetus / cat.rb
Created Jan 4, 2019
commit for exercise 3.4
View cat.rb
class Cat
#attr handler
attr_reader :color, :breed
attr_accessor :name
#init method
def initialize(color, breed)
@color = color
@breed = breed
@hungry = true
end
You can’t perform that action at this time.