Skip to content

Instantly share code, notes, and snippets.

View JunichiIto's full-sized avatar

Junichi Ito JunichiIto

View GitHub Profile
@JunichiIto
JunichiIto / opinion.md
Created May 15, 2020 23:18
Summary: Volunteer former prosecutors' opinion on the extension of the retirement age of the Chief Prosecutor of Tokyo High Prosecutors

Summary: Volunteer former prosecutors' opinion on the extension of the retirement age of the Chief Prosecutor of Tokyo High Prosecutors

I have tried to summarize the opinion posted on the following page from a personal perspective.

[Full text of opinion paper] The Prime Minister is reminiscent of Louis XIV in "I am the State": Asahi Shimbun Digital

NOTE: This document is automatically translated from the Japanese version through DeepL translator.

1. Kurokawa's extension of retirement age (which is still ongoing) has no legal basis

こちらのツイートの疑問点について、僕なりに回答してみます。

例えばですけど、

resource :basket, only: [:show, :update, :destroy]

このとき、resourceには:がなくて、onlyには:がある。 これって、Rubyなんでしょうか?

Traceback (most recent call last):
8: from ./sample.rb:49:in `<main>'
7: from ./sample.rb:50:in `<class:Book>'
6: from /Users/jnito/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/activerecord-6.0.0/lib/active_record/associations.rb:1511:in `has_one'
5: from /Users/jnito/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/activerecord-6.0.0/lib/active_record/associations/builder/association.rb:30:in `build'
4: from /Users/jnito/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/activerecord-6.0.0/lib/active_record/associations/builder/association.rb:40:in `create_reflection'
3: from /Users/jnito/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/activerecord-6.0.0/lib/active_record/associations/builder/association.rb:67:in `validate_options'
2: from /Users/jnito/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/activesupport-6.0.0/lib/active_support/core_ext/hash/keys.rb:50:in `assert_valid_keys'
1: from /Users/jnito/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/activesupport-6.0.0/lib/active_support/core_ext/hash/ke
# see also
# https://relishapp.com/rspec/rspec-mocks/v/3-9/docs/configuring-responses/block-implementation#simulating-a-transient-network-failure
describe 'Mock' do
specify do
foo = double
counter = 0
allow(foo).to receive(:bar) do
if counter.zero?
counter += 1
'abc'
@JunichiIto
JunichiIto / gist:3f5a414601a4245be0f82400899bf0e2
Last active February 5, 2020 00:16 — forked from machida/html_practice.html
HTMLの練習(このレシピにマークアップをしてみましょう)
<p>
カレーのレシピ
誰でもできる、美味しいカレーの作り方です。旦那も息子もこのカレーが大好物。
ポイントは玉ねぎと人参はミキサーで細かくしてしまうところ。逆にコクのある美味しいカレーになります。
レシピの作者
山田サチ子さん
@JunichiIto
JunichiIto / tokyogirlsrb-vol2-takuji.md
Created November 21, 2019 02:48
託児室について - TokyoGirls.rb Meetup vol.2

託児室について - TokyoGirls.rb Meetup vol.2

託児室の利用を検討される方は、以下の内容をよく読んでから参加申し込みしてください。

託児室を設置する目的と、運営チームからのお願い

「子育て真っ最中だけど、勉強会に行きたい!」というパパ・ママエンジニアが、できるだけ気軽に参加できる勉強会にする、というのが託児室を設ける目的であり、運営チームの願いです☺️

「女性エンジニアが参加しやすい勉強会」と同時に、「パパ・ママエンジニアが参加しやすい勉強会作り」も一緒に実現していきましょう!

@JunichiIto
JunichiIto / sponsorship-vol2.md
Last active November 5, 2019 20:53
託児スポンサー募集要項 - TokyoGirls.rb Meetup vol.2

託児スポンサー募集要項 - TokyoGirls.rb Meetup vol.2

このたびはTokyoGirls.rb Meetup vol.2の託児室スポンサーシップにご興味を持っていただき、どうもありがとうございます。

TokyoGirls.rb Meetupは「女性も参加しやすい勉強会」を目指して開催される、Ruby勉強会です。「女性も参加しやすい勉強会」を目指すのと同時に、「子育て世代のパパ・ママエンジニアも参加しやすい勉強会にしたい」という思いから、託児室の設置を企画しています。

みなさまからいただいた協賛金は、この託児室の運営に伴って発生するサービス利用料に充てられます。

以下の内容をご覧いただき、みなさまからご支援いただけると幸いです。よろしくお願いいたします。

@JunichiIto
JunichiIto / tokyogirlsrb-vol2-cfp.md
Last active September 25, 2019 20:52
公募スピーカー募集要項 - TokyoGirls.rb Meetup vol.2

公募スピーカー募集要項 - TokyoGirls.rb Meetup vol.2

TokyoGirls.rb Meetup vol.2では、公募スピーカー(登壇者)を募集します。

初心者 or 上級者、登壇経験者 or 未経験者を問いません(=選考時に考慮しません)ので、興味がある方はお気軽にお申し込みください!

基本情報

  • イベント開催日時:2019年12月21日(土) 13:00〜18:00
  • 場所:株式会社SmartHR(東京都港区六本木3-2-1 住友不動産六本木グランドタワー 39F)
@JunichiIto
JunichiIto / jstree_test.rb
Last active July 30, 2019 10:32
Drag and drop demo with capybara + jstree
# Modified from https://gist.github.com/trcarden/380d3d2e345a7536e8ae8c2a0a2c13a0
require 'bundler/inline'
gemfile do
source 'https://rubygems.org'
gem 'selenium-webdriver'
gem 'webdrivers'
gem 'capybara', '3.5.1' # Work
# gem 'capybara', '3.6.0' # Not work
@JunichiIto
JunichiIto / nishiwaki-koberb-policy.md
Created July 18, 2019 22:42
西脇.rb & 神戸.rb アンチハラスメントポリシー

西脇.rb & 神戸.rb アンチハラスメントポリシー

西脇.rb & 神戸.rbではアンチハラスメントポリシーを定めています。イベントに参加するみなさんは以下のポリシーを遵守するように心がけてください。

当ポリシーの目的と適用範囲

当ポリシーは、イベントの参加者全員が楽しく、安全に集える場を維持するために策定されました。

「参加者全員が楽しく、安全に集える場を維持する」という目的には、「将来開催されるイベントについてもみなさんが不安や心配を感じることなく、気軽に参加できること」も含まれています。