ruby scraper.rb > polls.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Avoid `console` errors in browsers that lack a console. | |
| (function() { | |
| var method; | |
| var noop = function () {}; | |
| var methods = [ | |
| 'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', | |
| 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', | |
| 'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd', | |
| 'timeStamp', 'trace', 'warn' | |
| ]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Testing http://www.radionz.co.nz/?stats=none | |
| At Sun Nov 3 17:15:27 2013 | |
| 20 loops | |
| Fastest Median Slowest Std Dev | |
| --------------------------------------------------------------------------- | |
| Server performance: | |
| Total application time Unable to be recorded |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Testing http://thewireless.co.nz/?stats=none | |
| At Sun Nov 3 17:08:02 2013 | |
| 20 loops | |
| Fastest Median Slowest Std Dev | |
| --------------------------------------------------------------------------- | |
| Server performance: | |
| Total application time Unable to be recorded |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FormView = Backbone.View.extend({ | |
| template: JST["form_template"], | |
| render: function() { | |
| $(this.el).html(this.template(this.model)); | |
| var address_input = $("input[name='address']", this.el)[0]; | |
| this.widget = new AddressFinder.Widget(address_input, "API_KEY"); | |
| return this.el; | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rubygems' | |
| require 'middleman/rack' | |
| require 'rspec' | |
| require 'capybara/rspec' | |
| Capybara.save_and_open_page_path = File.join("tmp", "capybara") | |
| Capybara.ignore_hidden_elements = false | |
| Capybara.app = Middleman.server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <script src="http://mbostock.github.com/d3/d3.v2.js?2.8.1"></script> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
| <style> | |
| body { | |
| font: 10px sans-serif; | |
| } | |
| rect { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| children = | |
| "Christina Daniel" : 12 | |
| "Brock Sanford" : 10 | |
| "Yasmin Feest" : 8 | |
| "Brock Sauer" : 7 | |
| "Christina Leannon" : 9 | |
| "Maci Block" : 11 | |
| "Ruben Macejkovic" : 5 | |
| "Aiyana Schneider" : 10 | |
| "Celestine Ullrich" : 11 |
NewerOlder