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
Array.implement({ | |
inGroupsOf: function(size) { | |
var slices = []; | |
var current = []; | |
this.each(function(e) { | |
if (current.length < size) current.push(e); | |
else { | |
slices.push(current); | |
current = [e]; | |
} |
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
def wait_for_xpath_count(xpath, expected) | |
command 'waitForXpathCount', xpath, expected | |
end |
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
Capybara.register_driver :custom_firefox do |app| | |
profile = Selenium::WebDriver::Firefox::Profile.new | |
profile['dom.max_script_run_time'] = '60' | |
Capybara::Driver::Selenium.new(app, browser: :firefox, profile: profile) | |
end |
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
set :branch, `git branch 2> /dev/null`.scan(/\* (\S+)/).flatten[0] |
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
Vagrant.configure('2') do |config| | |
config.ssh.forward_agent = true | |
config.vm.provider 'virtualbox' do |vb| | |
vb.customize ['modifyvm', :id, '--memory', '2048'] | |
vb.customize ['modifyvm', :id, '--cpus', 4] | |
vb.customize ['modifyvm', :id, '--ioapic', 'on'] | |
vb.customize ['modifyvm', :id, '--natdnsproxy1', 'off'] | |
vb.customize ['modifyvm', :id, '--natdnshostresolver1', 'off'] | |
end |
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
/\*((?!\*/).|\n)+\*/ |
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
FROM centos:7 | |
ENV RBX_VERSION 2.2.10 | |
ENV LANG en_US.UTF-8 | |
ENV LC_ALL en_US.UTF-8 | |
ENV HOME /root | |
ENV SHELL /bin/bash |
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
exports.config = { | |
files: { | |
javascripts: { | |
joinTo: { | |
'js/app.js': [ | |
'web/static/js/vendor/**/*.js', | |
'web/static/js/app/*.js' | |
], | |
'js/dashboard.js': [ | |
'web/static/js/vendor/**/*.js', |
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
{ config, pkgs, ... }: | |
{ | |
nixpkgs.overlays = [ | |
(self: super: { | |
nginxStable = super.nginxStable.override { | |
modules = [ | |
self.nginxModules.brotli | |
]; | |
}; |
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
--- | |
layout: default | |
title: Terms & Conditions | |
body_class: terms | |
--- | |
<section class='section content'> | |
<div class='container group'> | |
<h1 class='motto'>Terms of service</h1> | |
<div class='full'> |
OlderNewer