- Task 1
- Task 2
This file contains 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 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 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 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 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' | |
]; |
OlderNewer