Skip to content

Instantly share code, notes, and snippets.

View ymoregola's full-sized avatar

Yanick Moregola ymoregola

  • Puerto Rico
View GitHub Profile
@ymoregola
ymoregola / index.html
Created September 20, 2015 22:36
Shopping List : Non-Interactive
<!DOCTYPE <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Shopping List</title>
<link href="css/style.css" rel="stylesheet">
</head>
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)
def fav_foods
food_array = []
3.times do
puts "Name a favorite food."
food_array << gets.chomp
end
puts "Your favorite foods are #{food_array.join(", ")}."
end
if 5+5 !=10
puts "this is true"
else
puts "this is false"
end
def choose
puts "Do you like programming? Yes or no please."
choice = gets.chomp
if (choice.downcase == "yes")
puts "That\'s great!"
my_name = "Yanick"
def greeting
puts "Please enter your name:"
name = gets.chomp
puts "Hello" + " " + name
end
greeting
@ymoregola
ymoregola / index.html
Created September 10, 2015 04:03
Shopping List
<!DOCTYPE <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Shopping List</title>
<link href="css/style.css" rel="stylesheet">
</head>
@ymoregola
ymoregola / app.js
Created September 9, 2015 23:33
Street Fighter - Ryu
$(document).ready(function(){
$('.ryu').mouseenter(function(){
$('.ryu-still').hide();
$('.ryu-ready').show();
$('.ryu-cool').hide();
$('.ryu-throwing').hide();
})
.mouseleave(function() {
$('.ryu-still').show();
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Hello World!</title>
<!-- Bootstrap core CSS -->
<!-- <link href="css/bootstrap.css" rel="stylesheet"> -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Hello World!</title>
<!-- Bootstrap core CSS -->
<!-- <link href="css/bootstrap.css" rel="stylesheet"> -->