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
# Table of Contents | |
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides"> | |
<colgroup> | |
<col class="org-left" /> |
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
# frozen_string_literal: true | |
require 'hello' | |
RSpec.describe Hello do | |
describe '.world' do | |
subject(:world) do | |
described_class.world | |
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
# frozen_string_literal: true | |
class Hello | |
def self.world | |
'helloworld' | |
end | |
def self.rand_list(length, lowerb, upperb) | |
0.upto(length - 1).map do | |
rand(lowerb..upperb) |
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
version: '3.9' | |
services: | |
sidekiq: | |
depends_on: [ redis, db, bg_sync ] | |
image: nemo:x86 | |
platform: linux/amd64 | |
web: | |
depends_on: [ redis, db, bg_sync ] |
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
#!/bin/sh | |
if [ $# -eq 0 ]; then | |
echo "No arguments provided" | |
exit 1 | |
fi | |
for container in `docker ps -q`; do | |
# show the name of the container | |
printf '%-40s' $(docker inspect --format='{{.Name}}' $container) |
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
# frozen_string_literal: true | |
require 'rails_helper' | |
RSpec.describe 'FeedsController with Capybara', type: :feature do | |
before do | |
# control group | |
create_list :auction, 10, :with_lots, lots_size: 10, start_date: 5.years.ago, | |
end_date: 4.years.ago | |
end |
NewerOlder