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
| # contents of spec/support/coverage.rb | |
| require 'simplecov' | |
| require 'simplecov-rcov' | |
| SimpleCov.formatters = [ | |
| SimpleCov::Formatter::HTMLFormatter, | |
| SimpleCov::Formatter::RcovFormatter | |
| ] |
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
| MAX = 10_000 | |
| def dedupe_alltogether(results) | |
| results = [] | |
| results.each do |result| | |
| results.push(result) unless results.include?(result) | |
| end | |
| end |
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
| RDS_HOSTNAME=db | |
| RDS_USERNAME=root | |
| RDS_PASSWORD=some_pass | |
| NODE_PATH=/app | |
| MESSAGE_SERVICE_USERNAME=guest | |
| MESSAGE_SERVICE_PASSWORD=guest | |
| MESSAGE_SERVICE_PORT=5672 | |
| MESSAGE_SERVICE_VHOST=/ | |
| MESSAGE_SERVICE_HOST=rabbit |
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
| RDS_HOSTNAME=db | |
| RDS_USERNAME=root | |
| RDS_PASSWORD=some_password |
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
| process.on('uncaughtException', function (err) { | |
| console.error(err.stack); | |
| process.exit(1); | |
| }) | |
| var Promise = require("bluebird"); | |
| var knex = require('knex')({ | |
| client: 'mysql', | |
| connection: { |
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
| module.exports = function(rabbit, subscribeTo) { | |
| return rabbit.configure({ | |
| connection: { | |
| user: 'guest', | |
| pass: 'guest', | |
| server: [ | |
| process.env.RABBITMQ_HOSTNAME | |
| ], | |
| port: 5672, | |
| vhost: '%2f', |
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
| (function() { | |
| 'use strict'; | |
| angular.module('blocks.pagination', []); | |
| })(); |
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
| set -g base-index 1 | |
| setw -g mode-mouse on | |
| set -sg escape-time 0 | |
| setw -g xterm-keys on | |
| # keybindings to make resizing easier | |
| bind -n M-Left resize-pane -L |