This file contains hidden or 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
git push heroku master | |
Counting objects: 29, done. | |
Delta compression using up to 4 threads. | |
Compressing objects: 100% (28/28), done. | |
Writing objects: 100% (29/29), 3.51 KiB | 189.00 KiB/s, done. | |
Total 29 (delta 14), reused 0 (delta 0) | |
remote: Compressing source files... done. | |
remote: Building source: | |
remote: | |
remote: -----> Ruby app detected |
This file contains hidden or 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
def game_menu() | |
puts "Type the letter inside the brackets () to go through the script!" | |
sleep(1.5) | |
puts "Whatup, wanne play a game? Choose (Y)es, (N)o, (Q)uit or else to exit" | |
decision = (gets.chomp).upcase | |
if decision === "Y" | |
sleep(0.4) | |
game_start() | |
elsif decision === "N" | |
puts "Okay, so what´s the point? Starting all over?" |
This file contains hidden or 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
# Setting up the Class Cat | |
class Pet | |
#attr reader (getter) and writer (setter) to access attributes of instance object | |
attr_reader :color, :breed, :name | |
attr_writer :name | |
#initialize-function runs everytime a new object of Cat class is created | |
def initialize(color, breed, name) | |
@color = color | |
@breed = breed | |
@name = name |
This file contains hidden or 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
# Setting up the Class Cat | |
class Cat | |
#attr reader (getter) and writer (setter) to access attributes of instance object | |
attr_reader :color, :breed, :name | |
attr_writer :name | |
#initialize-function runs everytime a new object of Cat class is created | |
def initialize(color, breed, name) | |
@color = color | |
@breed = breed | |
@name = name |
This file contains hidden or 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
def fav_foods | |
food_array = [] | |
3.times do | |
puts "Enter your favorite food" | |
entering_food = gets.chomp | |
food_array.push(entering_food) | |
end | |
# p food_array | |
# puts "Youor favorite foods are: #{food_array}" |
This file contains hidden or 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
def choose | |
puts "Do you like programming? Yes or no please." | |
choice = gets.chomp | |
if (choice.downcase == "yes") | |
puts "That\´s great!" | |
elsif (choice.downcase == "no") | |
puts "That\´s too bad!" | |
else | |
puts "That wasn\´t a yes or no." | |
end |
This file contains hidden or 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
puts "This is gonna be my first program written in Ruby!" | |
# def greeting(name) # here we say def to define a method and put the name of our method | |
# p "Whatup " + name.capitalize # here’s the code inside our method | |
# end # and here we end or close our method | |
# greeting("denny") | |
def greeting | |
puts "Please enter your name:" |
This file contains hidden or 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
function GetMap(){ | |
var map = new Microsoft.Maps.Map('#myMap', { | |
center: new Microsoft.Maps.Location(52.526139, 13.464186), | |
mapTypeId: Microsoft.Maps.MapTypeId.grayscale, | |
zoom: 16 | |
}); | |
//listen to clicks | |
Microsoft.Maps.Events.addHandler(map, 'click', function () { alert('mapClick'); }); | |
}; |
This file contains hidden or 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
function GetMap(){ | |
var map = new Microsoft.Maps.Map('#myMap', { | |
center: new Microsoft.Maps.Location(52.526139, 13.464186), | |
mapTypeId: Microsoft.Maps.MapTypeId.grayscale, | |
zoom: 16 | |
}); | |
//listen to clicks | |
Microsoft.Maps.Events.addHandler(map, 'click', function () { alert('mapClick'); }); | |
}; |
This file contains hidden or 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> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> | |
<title>Hello World!</title> | |
<!-- Bootstrap core CSS --> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" integrity="sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4" crossorigin="anonymous"> |