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
diff --git a/docs/pomodoro-timer.html b/docs/pomodoro-timer.html | |
index fcc18c3..047c024 100644 | |
--- a/docs/pomodoro-timer.html | |
+++ b/docs/pomodoro-timer.html | |
@@ -124,11 +124,7 @@ | |
const interval = parameters.work + parameters.break; | |
const minutesInInterval = minutes % interval; | |
const sessionNumber = (date.getHours() - 5) % 24; | |
- if (minutesInInterval < parameters.work) { | |
- return `POMODORO#${sessionNumber}`; |
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
require 'bundler/inline' | |
gemfile do | |
source 'https://rubygems.org' | |
gem 'rspec' | |
end | |
require 'rspec/autorun' |
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
name: rubocop-todo-corrector | |
on: | |
pull_request: | |
types: | |
- closed | |
workflow_dispatch: | |
inputs: | |
cop_name: | |
description: Pass cop name if you want to pick a specific cop. |
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
{ | |
"createdBy": "Redirector v3.5.3", | |
"createdAt": "2022-05-05T22:35:21.668Z", | |
"redirects": [ | |
{ | |
"description": "GitHub Docs ja to en", | |
"exampleUrl": "https://docs.github.com/ja/repositories/creating-and-managing-repositories/creating-a-template-repository", | |
"exampleResult": "https://docs.github.com/en//repositories/creating-and-managing-repositories/creating-a-template-repository", | |
"error": null, | |
"includePattern": "https://docs.github.com/ja($|/.*)", |
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
#!/bin/bash | |
set -eu | |
set -o pipefail | |
# Set these 2 variables. | |
PROJECT_ID="godolog-example-15" # e.g. godolog-example | |
GITHUB_REPO="r7kamura/godolog-example" # e.g. r7kamura/godolog-example | |
SERVICE_ACCOUNT_ID="google-drive-reader" | |
SERVICE_ACCOUNT_EMAIL="${SERVICE_ACCOUNT_ID}@${PROJECT_ID}.iam.gserviceaccount.com" |
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
require 'bundler/inline' | |
gemfile do | |
source 'https://rubygems.org' | |
gem 'activesupport' | |
gem 'builder' | |
gem 'faraday' | |
gem 'faraday_middleware' | |
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
require 'bundler/inline' | |
gemfile do | |
source 'https://rubygems.org' | |
gem 'activesupport' | |
gem 'builder' | |
end | |
require 'active_support/core_ext/array/conversions' |
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
require 'rails_helper' | |
RSpec.describe 'FactoryBot factory' do | |
FactoryBot.factories.each do |factory| | |
describe factory.name.inspect do | |
it 'creates valid record' do | |
expect { FactoryBot::Linter.new([factory]).lint! }.not_to raise_error | |
end | |
end | |
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
# frozen_string_literal: true | |
require 'bundler/inline' | |
gemfile do | |
source 'https://rubygems.org' | |
gem 'activerecord', '6.0.3.4' | |
gem 'sqlite3' | |
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
require 'i18n' | |
require 'yaml' | |
I18n.backend.store_translations( | |
:en, | |
YAML.load(<<-YAML) | |
activerecord: | |
attributes: | |
user: | |
status: |
NewerOlder