Here's a live demo http://dogdash.herokuapp.com/
Code example: https://github.com/bennycwong/dogdash
Dashing widget to display a random gif from reddit
Here's a live demo http://dogdash.herokuapp.com/
Code example: https://github.com/bennycwong/dogdash
Dashing widget to display a random gif from reddit
| <?php | |
| /* | |
| Made by Kudusch (blog.kudusch.de, kudusch.de, @Kudusch) | |
| --------- | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2004 Sam Hocevar <sam@hocevar.net> |
Forked from the dashing Verbinski plugin, which uses the excellent Forecast.io API.
Took a little inspiration from the News widget to construct this Reddit widget. Simply add the subreddit .json feed URLs that you want to the top of the reddit.rb job script, and the widget will cycle through each one, showing top posts, their score, and comment count. You can also set the maxcount higher or lower, the default is 5 posts.
##Usage
Dashing widget to display a random cute picture from http://reddit.com/r/aww
The display of the widget is heavily based on the Image widget, however it does not prepend the src with 'assets' which allows for external images.
You can set a placeholder image in the event that reddit is down, or otherwise unresponse. This is set at the top of random_aww.rb as follows: