Skip to content

Instantly share code, notes, and snippets.

@willnet
willnet / be_a_rails_contributer.md
Last active August 21, 2023 05:44
Railsコントリビュータへの道

これはなに

  • Railsにプルリクストを送るときに知っておくと便利なお作法集
  • Railsにプルリクエストを送りたいけど何から始めたらいいのかわからない人向けの指針

お作法についてはRuby on Rails に貢献する方法 | Rails ガイドを参考にしています。

前提知識

Railsのコードを読むには、最低限次の二つの知識があったほうがよいです

@FranklinYu
FranklinYu / README.markdown
Last active March 22, 2026 02:44
links for old versions of Docker for Mac (inspired by docker/for-mac#1120)

links for old versions of Docker for Mac

Deprecated

Docker provides download links in release note. They promised that

(we) will also include download links in release notes for future releases.

Note:

@kule
kule / mini_rspec.rb
Created September 11, 2018 09:37
Simplified example of how rspec works
require 'bundler/inline'
gemfile do
source 'https://rubygems.org'
gem 'colorize'
end
class MatcherInterface
def initialize(some_object)
@some_object = some_object
@rosylilly
rosylilly / application_record.rb
Created January 15, 2020 09:39
Useful application record snippet for rails application
# frozen_string_literal: true
class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
# List all model classes
def self.models
@models ||= begin
models = []
Rails.root.join('app', 'models').glob('**/*.rb') do |path|
@watr
watr / cmd2ctr_cmd-ime_kana-layout.ahk
Last active February 28, 2021 04:06
Mac US keyboard key remapping for Windows with Kana input style
#Include IME.ahk
CapsLock::Ctrl
LWin::LCtrl
RWin::RCtrl
/*
;;;;;;;; Inspired by https://github.com/karakaram/alt-ime-ahk
*/
; 主要なキーを HotKey に設定し、何もせずパススルーする