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
de: | |
default: &default | |
one: 1 | |
two: 2 | |
mama: | |
<<: *default | |
papa: | |
<<: *papa | |
# phraseapp |
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
-- execution time: 74ms | |
SELECT DISTINCT proposals.* | |
FROM (SELECT "proposals".* | |
FROM "proposals" | |
WHERE "proposals"."private" = 'f' | |
UNION SELECT "proposals".* | |
FROM "proposals" | |
WHERE "proposals"."visible_outside" = 't' | |
UNION SELECT "proposals".* |
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
begin | |
require 'bundler/inline' | |
rescue LoadError => e | |
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler' | |
raise e | |
end | |
gemfile(true) do | |
source 'https://rubygems.org' | |
gem 'minitest' |
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
Warming up -------------------------------------- | |
easy 860.000 i/100ms | |
cannot 621.000 i/100ms | |
simple filter 596.000 i/100ms | |
one join 260.000 i/100ms | |
two joins 207.000 i/100ms | |
three joins 163.000 i/100ms | |
Calculating ------------------------------------- | |
easy 8.739k (± 4.8%) i/s - 43.860k in 5.031055s | |
cannot 6.233k (± 5.2%) i/s - 31.671k in 5.096447s |
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
fileName="$1" # File containing only S3 object key | |
bucketName="$2" | |
profileName="$3" | |
count=0 | |
while read key; do | |
aws s3api copy-object --bucket $bucketName --copy-source "$bucketName/$key" --key "$key" --query "CopyObjectResult.{LastModified}" --profile $profile | |
var=$((count+1)) | |
echo "#$count ... $key" | |
done < $fileName |
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
image: circleci/ruby:2.5.1-node-browsers | |
pipelines: | |
default: | |
- step: &tests | |
name: Tests | |
caches: | |
- bundler | |
- node | |
services: |
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
<input id="api-token" type="password" value="" readonly data-select /> | |
<button data-token-reveal="api-token" data-alternate-text="Hide">Show</button> |
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
begin | |
require 'bundler/inline' | |
rescue LoadError => e | |
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler' | |
raise e | |
end | |
gemfile(true) do | |
source 'https://rubygems.org' | |
gem 'rails', '5.2.0' # use correct rails version |
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
begin | |
require 'bundler/inline' | |
rescue LoadError => e | |
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler' | |
raise e | |
end | |
gemfile(true) do | |
source 'https://rubygems.org' | |
# gem 'rails', '~> 5.2' |
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
begin | |
require 'bundler/inline' | |
rescue LoadError => e | |
warn 'Bundler version 1.10 or later is required. Please update your Bundler' | |
raise e | |
end | |
gemfile(true) do | |
source 'https://rubygems.org' | |
gem 'rails', '~> 5.2' |