Skip to content

Instantly share code, notes, and snippets.

View yoshuki's full-sized avatar
🏠
Working from home

MIKAMI Yoshiyuki yoshuki

🏠
Working from home
View GitHub Profile
@willnet
willnet / rails8_0_new_features.md
Last active January 21, 2025 00:31
Rails8.0のマイナーフィーチャーで気になったところ

これはなに

Railties

scriptディレクトリが復活した

@willnet
willnet / rails_7_2_new_features.md
Last active January 17, 2025 08:24
Rails7.2のマイナーフィーチャーで気になったところ

これはなに

  • 現時点(2024/08/30)でRails7.2.1がリリースされています
  • Ruby on Rails 7.2 Release Notes — Ruby on Rails Guides にメジャーフィーチャーが書かれている
  • マイナーフィーチャーはよくわからないので、個人的に気になったマイナーフィーチャをまとめています

Railties

rails bootコマンドの追加

@yazumoto
yazumoto / unicode_decode.rb
Created September 3, 2015 08:45
Unicodeの文字(\u1234的なもの)を変換するRubyコード
str = '\u534a\u89d2\u82f1\u6570\u5b57'
str.gsub(/\\u([\da-fA-F]{4})/) { [$1].pack('H*').unpack('n*').pack('U*') } # => 半角英数字
@pcreux
pcreux / Gemfile
Last active December 11, 2023 20:24
Fast Rails + Heroku Configuration
group :production do
gem 'unicorn'
# Enable gzip compression on heroku, but don't compress images.
gem 'heroku-deflater'
# Heroku injects it if it's not in there already
gem 'rails_12factor'
end
@adamawolf
adamawolf / Apple_mobile_device_types.txt
Last active September 1, 2025 12:17
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
arm64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S