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
SELECT | |
s.Quantity | |
, c.CustomerName | |
, p.ProductName | |
, e.EmployeeName | |
FROM | |
Sales AS s | |
JOIN | |
Customers AS c | |
ON |
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
UPDATE | |
Salary | |
SET | |
Amount | |
= Amount + | |
( | |
SELECT | |
(2007 - e.HireFiscalYear) * 1000 | |
FROM | |
Employees AS e |
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
puts "Type the start year." | |
start_year = gets.chomp.to_i | |
puts "Then, type the end year." | |
end_year = gets.chomp.to_i | |
puts "==================================" | |
puts "The followings are the leap years." | |
puts "==================================" | |
i = start_year | |
while i <= end_year |
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
count = 0 | |
puts 'Hello! May I help you?' | |
begin | |
word = gets.chomp | |
if word != 'BYE' | |
# BYE以外を話しかけられた時はきちんと答える | |
if word.upcase == word | |
puts "Well, it hasn't happened since #{(1930..1950).to_a.sample} !" | |
else | |
puts 'Huh? Could you speak up, please??' |
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
puts 'Hello! May I help you?' | |
while true | |
word = gets.chomp | |
unless word == 'BYE' | |
# BYE以外を話しかけられた時はきちんと答える | |
if word.upcase == word | |
puts "Well, it hasn't happened since #{(1930..1951).to_a.sample} !" | |
else | |
puts 'Huh? Could you speak up, please??' | |
end |
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
puts 'Hello! May I help you?' | |
word = gets.chomp | |
while word != 'BYE' | |
if word.upcase == word | |
puts 'Well, it hasn\'t happened since ' + (1930 + rand(21)).to_s + ' !' | |
else | |
puts 'Huh? Could you speak up, please??' | |
end | |
word = gets.chomp | |
end |
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
body { | |
background-image:url("curry.jpg") | |
background-repeat: no-repeat; | |
background-attatchment: fixed; | |
} | |
h1 { | |
color :blue; | |
} |
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="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
</head> | |
<body> | |
<h1>カレーのレシピ</h1> | |
<p> | |
誰でもできる、美味しいカレーの作り方です。旦那も息子もこのカレーが大好物。 |
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="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>カレーのレシピ</title> | |
</head> | |
<body> | |
<h1>カレーのレシピ</h1> | |
<div> |
NewerOlder