GitHub Code Viewer 2 automatically pulls a file from github and places into any post using a shortcode [github_cv url=‘$url’] Caches locally (in db), so there isn’t a performance hit. Heavily Modified from original plugin by Matt Curry http://www.pseudocoder.com
Installation Upload GitHub_Code_Viewer.php to the /wp-content/plugins/ directory Activate the plugin through the ‘Plugins’ menu in WordPress Use the shortcode [github_cv url=’’] in your post. Changelog 2.0 Rewrote as a static class as only one instance is needed.
GitHub Code Viewer 2 is a plugin for wordpress that will automatically pull a file from github and place into any post using a shortcode [github_cv url=‘$url’]. It caches the code locally (in db), so it’s quite fast and can be even faster when combined with wp_super_cache or w3c_total_cache. It will re-request the code from github every 24 hours (by default, but it’s configurable) so the code in your post will always remain up to date.
I’ve used Drupal to power my blog since I started it over 2 years ago. It has been a bitter sweet relationship, but in general I’ve been pleased. In those two years, WordPress as a product has rocketed past Drupal, and feels much more mature. While Drupal 7 should level the field a bit, it’s a ways away and WordPress 3.0 is already here.