Skip to content

Instantly share code, notes, and snippets.

@JAChapmanII
Created January 8, 2011 19:11
Show Gist options
  • Save JAChapmanII/771067 to your computer and use it in GitHub Desktop.
Save JAChapmanII/771067 to your computer and use it in GitHub Desktop.
random php-stuffs
<html>
<head>
</head>
<body>
<pre>
<?php
$GH_BASE="http://github.com/api/v2/json/";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $GH_BASE . "repos/show/JAChapmanII");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = json_decode( curl_exec($ch) );
curl_close($ch);
foreach( $output->repositories as $repo )
{
print "<a href=\"" . $repo->url . "\">" . $repo->name . "</a>: \n";
print " " . $repo->description . "\n";
}
?>
</pre>
What?
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment