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
// 遅い、つらい | |
$sql = "insert into hoge_table (name, screen_name) values (:name, :screen_name)"; | |
$stmt = $dbh->prepare($sql); | |
for($i=0;count($contents->statuses);$i++){ | |
$params = array( | |
":name" => $contents->statuses[$i]->name, | |
":screen_name" => $contents->statuses[$i]->screen_name | |
) | |
$stmt->execute($params); | |
} |
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"> | |
<meta name="description" content="カレーのレシピ"> | |
<title>カレーのレシピ</title> | |
<link rel="shortcut icon" href="https://lh6.googleusercontent.com/-v9uEQkrr6Ic/AAAAAAAAAAI/AAAAAAAAAxE/x0HilNQSXJM/s120-c/photo.jpg"> | |
</head> | |
<body> | |
<header> |
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 'よう来たのう' | |
command = gets.chomp | |
while command != command.upcase | |
puts 'なんじゃて、もっと大きな声で叫んでくれ' | |
command = gets.chomp | |
end | |
puts '元気かいなー?' | |
command2 = 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
puts '先頭の年' | |
start = gets.chomp.to_i | |
puts '末尾の年' | |
stop = gets.chomp.to_i | |
puts 'うるう年一覧' | |
year = start | |
while year <= stop | |
if (year % 400 == 0) || | |
(year % 100 != 0 && year % 4 == 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> | |
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> | |
<title>CSS課題</title> | |
<link href="style.css" rel="stylesheet" type="text/css"> | |
</head> | |
<body> | |
<div id="wrap"> | |
<header id="header"> |
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
<% flash.each do |type, message| %> | |
<div class="alert <%= bootstrap_class_for(type) %> fade in"> | |
<button class="close" data-dismiss="alert">×</button> | |
<%= message %> | |
</div> | |
<% end %> |