Skip to content

Instantly share code, notes, and snippets.

<html>
<head>
<style type="text/css">
body { background-color: #fff; font-family: courier; font-size: 12px; margin: 0; padding: 0; }
.wrap {
background-color: #666;
width: 550px;
height: 100px;
margin-top: 20px;
}
<html>
<head>
<style type="text/css">
body { background-color: #fff; font-family: courier; font-size: 12px; }
.wrap {
border: 10px solid #f00;
width: 202px;
padding: 10px 10px 0;
}
.footer {
----------------------------------------------------------------------------
Kinn/7 Fjell tap battle (2016-04-27)
----------------------------------------------------------------------------
name name Average rating Number of checkins
---------------- ------------------ ------------------ ------------------
Kinn Bryggeri Svartekunst (2014) 4.19 15
Kinn Bryggeri Vestkyst 4.0 1
Kinn Bryggeri Brottsjø 3.964 8
7 Fjell Bryggeri Ulriken Double IPA 3.95 5
7 Fjell Bryggeri Yorkshire Stingo 3.95 10
<?php
$numbers = str_split("0123456789");
$solutions = inspira($numbers);
foreach ($solutions as $solution) {
echo $solution . "\n";
}
echo "Found " . count($solutions) . " solutions\n";
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<style type="text/css">
tr.had { color: #888; }
</style>
<script type="text/html" id="beer_row">
<% var d = new Date(obj.updated * 1000); now = new Date(); %>
<tr <%= (Beerradar.myRatings.indexOf(parseInt(obj.beer.ratings[0].id)) > -1) ? 'class="had"' : '' %>>
<td><%= Math.round((now.getTime() - d.getTime()) / 86400000) %> days</td>