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
| BSD-3-Clause | |
| MIT |
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/bash | |
| # See https://stackoverflow.com/questions/12967232/repeatedly-run-a-shell-command-until-it-fails | |
| # Description: | |
| # Run a command until it returns a failure error code. | |
| # Examples: | |
| # untilfailure bundle exec rspec spec/my_flaky_spec.rb | |
| # untilfailure bundle exec rspec spec/my_flaky_spec.rb --seed 1234 |
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 'bundler/inline' | |
| gemfile(true) do | |
| source 'https://rubygems.org' | |
| gem 'activerecord', '~> 7.1.0' | |
| gem 'sqlite3', '~> 1.4' | |
| gem 'cancancan', '~> 3.6.0', require: false | |
| # Potential fix mentioned in https://github.com/CanCanCommunity/cancancan/issues/696 but does not work either |
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
| #!/usr/bin/env ruby | |
| ports = ARGV | |
| def show_help | |
| puts "Usage: freeport <ports...>" | |
| puts "-h, --help\tShow this help page." | |
| end | |
| def show_help? |
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
| <?php | |
| $finder = PhpCsFixer\Finder::create() | |
| ->in(__DIR__) | |
| ; | |
| return PhpCsFixer\Config::create() | |
| ->setRules([ | |
| '@PSR2' => true, | |
| '@PhpCsFixer' => true, |
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
| <?php | |
| namespace Spatie\QueryBuilder\Filters; | |
| use Illuminate\Database\Eloquent\Builder; | |
| use Illuminate\Support\Collection; | |
| use ReflectionMethod; | |
| use ReflectionParameter; | |
| class FiltersScope implements Filter |