Skip to content

Instantly share code, notes, and snippets.

@pirogoeth
Created January 16, 2011 16:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pirogoeth/781930 to your computer and use it in GitHub Desktop.
Save pirogoeth/781930 to your computer and use it in GitHub Desktop.
GNU nano 2.2.4 File: ../index.php
<?
include ('include/header.php');
include ('php/simplepie.inc');
function github_feed () {
$feed = new SimplePie;
$feed->set_feed_url('http://github.com/miyoko.atom');
$feed->enable_cache(true);
$feed->init();
$feed->handle_content_type();
foreach($feed->get_items() as $item) {
echo '<strong><a href="' . $item->ge$
echo '<div class="medium awesome gre$
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment