Skip to content

Instantly share code, notes, and snippets.

View pongsh's full-sized avatar

Patrick Ong pongsh

  • Perth, Australia
View GitHub Profile
@pongsh
pongsh / humblebundle-data-tracker.html
Created August 2, 2013 07:38
Retrieves data from the humble bundle website and calculates the average.
<html>
<body>
<div id="info">
</div>
</body>
<script src=http://cdn.pubnub.com/pubnub-3.5.1.min.js ></script>
<script>(function(){
// Init
var pubnub = PUBNUB.init({
@pongsh
pongsh / daily-programmer-scraper.rb
Created July 27, 2013 02:09
Scrapes the dailyprogrammer subreddit and generates a list of all the challenges found sorted by difficulty.
require 'mechanize'
easy = ""
intermediate = ""
hard = ""
agent = Mechanize.new
page = agent.get('http://www.reddit.com/r/dailyprogrammer')
while page do