Skip to content

Instantly share code, notes, and snippets.

View bm.php
<?php
$of = isset($_GET['of']) ? $_GET['of'] : 0;
if($of == 0){
$of= 0;
}
$html = file_get_contents('http://b.hatena.ne.jp/entrylist?of=' . $of);
$html = str_replace("\n", '', $html);
preg_match_all('/(?<=\<div class="entry-contents"\>)(.*?)(?=\<\/div\>)/', $html, $matches);
View fizz_buzz.html
<!DOCTYPE html>
<html>
<head>
<title>CSS Fizz Buzz</title>
<link rel="stylesheet" href="./main.css">
</head>
<body>
<h1>CSSだけでFizzBuzzしよう</h1>
<h2>ルール</h2>
<ul>
You can’t perform that action at this time.