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
var ComparisonTable = (function ($) { | |
var init = function () { | |
$("td, th").on('mouseenter',function() { | |
var col = $(this).parent().children().index($(this)); | |
$('.eh-column').each(function () { | |
$(this).removeClass(); | |
}); | |
$('#column-' col).attr('class', 'column-boarder'); |
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
Show hidden characters
{ | |
// This is the ruby default | |
"tab_size": 2, | |
// Set to true to insert spaces when tab is pressed | |
"translate_tabs_to_spaces": true, | |
// This shows all your whitespace, including spaces and tabs | |
// helps keep code clean and properly indented! | |
"draw_white_space": "all", |
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
#!/usr/bin/env ruby | |
def each(array) | |
array.length.times do |i| | |
yield array[i] | |
end | |
end | |
def select(array) | |
result = [] |
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
#!/usr/bin/env ruby | |
class Manager | |
def pick_a_team(squad) | |
team = Team.new | |
# get the best players for every position from the squad | |
# and add them to the team | |
# for every position (goalkeeper etc) | |
# get the best player(s) from the squad |
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('./layout/searchResultsLayout'); | |
require('./views/productList'); | |
require('entities/map.js'); | |
require('./views/mapView'); | |
//Service dependencies | |
require('services/search'); | |
require('services/modifyProduct'); | |
require('services/productInfo'); |
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
var $ = require('jquery'); | |
var _ = require('underscore'); | |
var Backbone = require('backbone'); | |
var Marionette = require('backbone.marionette'); | |
var ProductShowController = require('apps/products/show/productShowController.js'); | |
var App = require('src/app.js'); | |
var productsShowChannel = Backbone.Wreqr.radio.channel('productsShow'); | |
describe('productShowController', function () { |
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
var _ = require('underscore'); | |
var Backbone = require('backbone'); | |
var Marionette = require('backbone.marionette'); | |
var App = require('../../../../../src/app'); | |
var ProductItemLayout = require('../../../../../src/lib/components/productCard/layout/productItemLayout'); | |
var productsCardChannel = Backbone.Wreqr.radio.channel('productsCard'); | |
describe('Product Item Layout View', function () { | |
beforeEach(function () { |
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('entities/productDetails/hotelImages'); | |
require('../views/productAllInfo'); | |
var App = require('src/app'); | |
var Backbone = require('backbone'); | |
var Marionette = require('backbone.marionette'); | |
var layoutTemplate = require('../templates/product.hbs'); | |
var Gallery = require('brg-ui-gallery'); |
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
var Backbone = require('backbone'); | |
var Marionette = require('backbone.marionette'); | |
var _ = require('underscore'); | |
var mapTemplate = require('../templates/map.hbs'); | |
var getThemeAssets = require('../../../../helpers/getThemeAssets'); | |
var productsListChannel = Backbone.Wreqr.radio.channel('productsList'); | |
var MapView = Marionette.ItemView.extend({ |
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
var Backbone = require('backbone'); | |
var MapView = require('../../../../../src/apps/products/list/views/mapView'); | |
var productsListChannel = Backbone.Wreqr.radio.channel('productsList'); | |
describe('Map View', function () { | |
beforeEach(function () { | |
window.google = { | |
maps: {} | |
}; |