Skip to content
A sliding view of the Hacker News front page over time
JavaScript Ruby
Find file
Latest commit 0ad2d97 Nov 2, 2010 @peterc Fixed file ordering bug
Failed to load latest commit information.
public
views
.gitignore Removed idiotic Mac resource fork files Oct 15, 2010
Gemfile Added Gemfile for bundler users and to show dependencies Oct 19, 2010
README Fixes URL in README Oct 15, 2010
app.rb Changed from 3 days to 1 week Oct 28, 2010
config.ru Spruced up Oct 15, 2010
crawl.rb Fixed file ordering bug Nov 2, 2010

README

Hacker Slide - http://hackerslide.com/ - is an experimental Hacker News client that stores snapshots of the front page items over time and allows you to scroll through them. I lifted the concept (though no code) from a Reddit equivalent at http://redditsnapshot.sweyla.com/

As of writing, the crawler on the main site has only been running for a day so there's not much data yet. Over time, I plan to extend the interface to deal with scrolling through days/weeks/months/etc. For now, it's just very simple.

There's very little code to pull this off but whatever there is and that isn't already licensed is BSD licensed so you can do almost whatever you want. At first glance, it seems like the Sinatra app is hardly doing anything and in theory it could be rewritten to use a static HTML page but... eh.

Technologies used:

* Ruby
* Sinatra - http://www.sinatrarb.com/
* jQuery and jQuery UI
* Slider control - http://www.filamentgroup.com/lab/update_jquery_ui_slider_from_a_select_element_now_with_aria_support/
* ruby-hackernews - http://github.com/bolthar/ruby-hackernews

If you want to try it locally, run crawl.rb once and then run the Sinatra app using Shotgun or rackup.

Peter Cooper
http://news.ycombinator.com/user?id=petercooper
http://twitter.com/peterc
http://peterc.org/
Something went wrong with that request. Please try again.