Skip to content

Instantly share code, notes, and snippets.

View mlncn's full-sized avatar

Benjamin Melançon mlncn

View GitHub Profile
@mlncn
mlncn / tpl.html
Created September 3, 2011 00:32 — forked from jacine/tpl.html
hrm...
<span property="dc:date dc:created" content="2011-08-30T17:01:12-04:00" datatype="xsd:dateTime">
<time datetime="2011-08-30T21:01:12" pubdate="pubdate">30 Aug 2011</time>
</span>
@mlncn
mlncn / showspreadsheet.php
Created January 9, 2011 12:44 — forked from pamelafox/showspreadsheet.php
by Pamela Fox, a tiny code snippet for using PHP to render published Google spreadsheets as HTML, which she ported from (Ported from her similarly tiny Python + App Engine version here: https://github.com/pamelafox/pamelafox-site/blob/master/main.py
<?php
// Parsing this spreadsheet: https://spreadsheets.google.com/pub?key=0Ah0xU81penP1dFNLWk5YMW41dkcwa1JNQXk3YUJoOXc&hl=en&output=html
$url = 'http://spreadsheets.google.com/feeds/list/0Ah0xU81penP1dFNLWk5YMW41dkcwa1JNQXk3YUJoOXc/od6/public/values?alt=json';
$file= file_get_contents($url);
$json = json_decode($file);
$rows = $json->{'feed'}->{'entry'};
foreach($rows as $row) {
echo '<p>';