Skip to content

Instantly share code, notes, and snippets.

<?php
include_once('simple_html_dom.php');
$html = file_get_html('http://www.redroadmusic.com');
// Find all article blocks
foreach($html->find('div.global_body') as $article)
{
$item[]['title'] = $article->find('a', 0)->plaintext;
@stevefrost
stevefrost / gist:1606369
Created January 13, 2012 14:05
Expandable table
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Expandable Table</title>
<style>
table, th, td {
border: 1px solid #000;
text-align: center;}
</style>
@stevefrost
stevefrost / install-fuelphp.sh
Created February 2, 2012 20:57 — forked from kenjis/install-fuelphp.sh
FuelPHP Install Script
#!/bin/sh
# FuelPHP Install Script
#
# @author Kenji Suzuki https://github.com/kenjis
# @copyright 2011 Kenji Suzuki
# @license MIT License http://www.opensource.org/licenses/mit-license.php
if [ $# -lt 2 ]; then
echo "Install FuelPHP and Create Application Repository"
* * {
-webkit-animation: rotate 15s infinite;
}
@-webkit-keyframes rotate {
0% { -webkit-transform: rotate(0deg); }
33% { -webkit-transform: rotate(-0.06deg); }
66% { -webkit-transform: rotate(0.06deg); }
100% { -webkit-transform: rotate(0deg); }
}