Skip to content

Instantly share code, notes, and snippets.

View yasulab's full-sized avatar
💎
\\ Rubyist! //

Yohei Yasukawa yasulab

💎
\\ Rubyist! //
View GitHub Profile
@k16shikano
k16shikano / SKILL.md
Last active August 21, 2026 01:37
japanese-tech-writing/SKILL
name japanese-tech-writing
description 日本語の技術文書・書籍原稿の文章規範。整形(一文一行、引用ブロック、脚注、コラム記法)、段落と論証の構成(パラグラフライティング)、論証の厳密さ(ツッコミどころの除去)、読み手の負荷の管理、視点と語り、演出の抑制、LLM っぽい空句の禁止、冗長の排除を定める。日本語で技術書の章、草稿、記事、解説文を書くとき、または推敲・リライトするときに使用する。

日本語技術文書の文章規範

日本語で技術的な原稿(書籍の章、記事、解説文)を書く・推敲するときは、以下の規範に従う。

整形

@makicamel
makicamel / how-to-prepare-device-for-picoruby.md
Last active April 27, 2026 05:10
PicoRuby デバイス準備ガイド

PicoRuby Device Preparation Guide

A guide for those who want to try PicoRuby but aren't sure which device to buy.

This guide introduces two devices: Raspberry Pi Pico 2 W (RP2350) and M5Stack ATOM Matrix (ESP32). Both devices run PicoRuby.

Device Comparison

Raspberry Pi Pico 2 W M5Stack ATOM Matrix
@willnet
willnet / rails8_1_new_features.md
Last active February 17, 2026 12:41
Rails8.1のマイナーフィーチャーで気になったもの

これはなに

  • 2025/10/22にRails8.1がリリースされましたね
  • Ruby on Rails 8.1 Release Notes — Ruby on Rails Guidesにリリースノートが書かれている
  • 上記メジャーフィーチャーに含まれなかったマイナーフィーチャーのうち、気になったものをざっくりまとめています
  • 間違いの指摘や、これも追加してくれ〜という物があればコメントお願いします

Beast Mode

Beast Mode is a custom chat mode for VS Code agent that adds an opinionated workflow to the agent, including use of a todo list, extensive internet research capabilities, planning, tool usage instructions and more. Designed to be used with 4.1, although it will work with any model.

Below you will find the Beast Mode prompt in various versions - starting with the most recent - 3.1

Installation Instructions

  • Go to the "agent" dropdown in VS Code chat sidebar and select "Configure Modes".
  • Select "Create new custom chat mode file"
@peterc
peterc / CONVENTIONS.md
Last active March 8, 2026 00:42
CONVENTIONS.md file for AI Rails 8 development
  • You MUST NOT try and generate a Rails app from scratch on your own by generating each file. For a NEW app you MUST use rails new first to generate all of the boilerplate files necessary.
  • Create an app in the current directory with rails new .
  • Use Tailwind CSS for styling. Use --css tailwind as an option on the rails new call to do this automatically.
  • Use Ruby 3.2+ and Rails 8.0+ practices.
  • Use the default Minitest approach for testing, do not use RSpec.
  • Default to using SQLite in development. rails new will do this automatically but take care if you write any custom SQL that it is SQLite compatible.
  • An app can be built with a devcontainer such as rails new myapp --devcontainer but only do this if requested directly.
  • Rails apps have a lot of directories to consider, such as app, config, db, etc.
  • Adhere to MVC conventions: singular model names (e.g., Product) map to plural tables (products); controllers are plural.
  • Guard against incapable browsers accessing controllers with `allo
@blu3mo
blu3mo / gist:1aa5cc22bd893d2e8dd00a485853d014
Last active May 25, 2026 14:44
未踏ジュニア採択に向けた徹底調査レポート

了解しました!未踏ジュニアに『採択されるために役立つ』実践的な知見を重点的に調査します。

  • 書類選考のコツ(提案書の具体的な書き方、採択された書類と落選した書類の違い)
  • 面接対策(よく聞かれる質問、面接時の評価ポイント、受け答えのコツ)
  • プロジェクトの作り込み(どの程度の完成度が求められるか、プロトタイプの重要性)
  • 落選者と採択者の違い(過去の事例から、どんな応募が落とされやすいのか)
  • 選考委員の発言分析(メンターや運営側が重視するポイント、選考基準)
  • 過去の採択者の体験記・ブログ・インタビューから得られる実践的な知見

徹底的に調査し、実際に採択されるために役立つ実践的なレポートを作成します。しばらくお待ちください!

@yahonda
yahonda / gist:7f5ee2861ecce0cdfcb422ef8735838a
Last active February 1, 2024 02:52
Rails CI using Ruby master branch

RailsのRuby masterブランチでのCIについて複数回聞かれたのでメモしておきます。

Rails 7.2で予定される変化

Rails CIとRubyバージョン

@pocke
pocke / videos.csv
Created June 22, 2023 04:01
RubyKaigi 2023 video list CSV
title link
[JA] The future vision of Ruby Parser / Yuichiro Kaneko @spikeolaf https://www.youtube.com/watch?v=IhfDsLx784g&list=PLbFmgWm555yYvWS7VGTFipF7ckduvSeT-&index=2&pp=iAQB
[EN] RuboCop's baddest cop / Genadi Samokovarov @gsamokovarov https://www.youtube.com/watch?v=n-D9uPOo_kc&list=PLbFmgWm555yYvWS7VGTFipF7ckduvSeT-&index=3&pp=iAQB
[EN] Generating RBIs for dynamic mixins with Sorbet and Tapioca / Emily Samp @egiurleo https://www.youtube.com/watch?v=UpbVZ4Gqk3c&list=PLbFmgWm555yYvWS7VGTFipF7ckduvSeT-&index=4&pp=iAQB
[JA] Make Regexp#match much faster / Hiroya FUJINAMI @makenowjust https://www.youtube.com/watch?v=IbMFHxeqpN4&list=PLbFmgWm555yYvWS7VGTFipF7ckduvSeT-&index=5&pp=iAQB
[EN] Understanding the Ruby Global VM Lock by observing it / Ivo Anjo @KnuX https://www.youtube.com/watch?v=rI4XlFvMNEw&list=PLbFmgWm555yYvWS7VGTFipF7ckduvSeT-&index=6&pp=iAQB
[JA] develop chrome extension with ruby.wasm / Yuma Sawai @aaaa777 https://www.youtube.com/watch?v=A2ziP8V9muE&list=PLbFmgWm555yYvWS7VGTFipF7ckduvSeT-&inde
@yahonda
yahonda / polished_ruby.md
Last active April 17, 2023 07:26
『研鑽Rubyプログラミング』感想

目的

この記事は、『研鑽Rubyプログラミング ― 実践的なコードのための原則とトレードオフ』 の感想記事です。レビューアーとして参加し、本書が広く読まれて欲しいので宣伝のために書きました。本記事は、"研鑽Rubyプログラミング β版 final"をもとに実施してます。なお、私自身はレビュアー参加のお礼として一冊本書をいただくことになっています。

きっかけ

私は2019年のRubyKaigiで、著者のJeremy EvansのKeynoteのレポート Jeremy Evansさん「たのしいRubyの先に、はやいRubyがある。Work, Correct, Fun! Fast」 〜RubyKaigi 2019 3日目 基調講演 を書いたことや、ある程度Ruby on Railsやデータベースに関するバックグラウンドがあったことから、その後翻訳者の角谷さんのレビューアー募集に応募して選ばれたというのがきっかけです。

@insin
insin / undoge.css
Created April 4, 2023 01:50
Replace doge with the Twitter logo
svg pattern + path[fill] {
fill: inherit;
d: path("M23.643 4.937c-.835.37-1.732.62-2.675.733.962-.576 1.7-1.49 2.048-2.578-.9.534-1.897.922-2.958 1.13-.85-.904-2.06-1.47-3.4-1.47-2.572 0-4.658 2.086-4.658 4.66 0 .364.042.718.12 1.06-3.873-.195-7.304-2.05-9.602-4.868-.4.69-.63 1.49-.63 2.342 0 1.616.823 3.043 2.072 3.878-.764-.025-1.482-.234-2.11-.583v.06c0 2.257 1.605 4.14 3.737 4.568-.392.106-.803.162-1.227.162-.3 0-.593-.028-.877-.082.593 1.85 2.313 3.198 4.352 3.234-1.595 1.25-3.604 1.995-5.786 1.995-.376 0-.747-.022-1.112-.065 2.062 1.323 4.51 2.093 7.14 2.093 8.57 0 13.255-7.098 13.255-13.254 0-.2-.005-.402-.014-.602.91-.658 1.7-1.477 2.323-2.41z");
}