Skip to content

Instantly share code, notes, and snippets.

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

Hiroshi SHIBATA hsbt

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

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

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

整形

@kddnewton
kddnewton / json.rb
Last active December 18, 2024 17:34
JSON parser with pattern matching
require "json"
struct = { "a" => 1, "b" => 2, "c" => [1, 2, 3], "d" => [{ "e" => 3 }, nil, false, true, [], {}] }
source = JSON.dump(struct)
tokens = []
index = 0
until source.empty?
tokens <<
@unak
unak / ruby-mswin64-202204.md
Last active November 11, 2023 06:45
RubyをVisual C++でビルドする 2022.04版(+2022.12・2023.06追記)

Visual C++をインストールする

というか、Visual Studioになるわけだが。 普通はCommunity Editionで問題ないと思うが、用途に応じてライセンスを選ぶこと。 インストールする際には、Windowsデスクトップ開発とかいうのを選ぶ。他はお好みで。 あー、確認してないけど、英語の言語パックは入れた方が多分いいです。入れないとだめかもしれない(thx hsbtさん)。

vcpkgをインストールする

GitHubにあるので、READMEの手順に従えばいい。 この過程でgitも入ることになる。

@mugi-uno
mugi-uno / remote-work-style-check.md
Last active October 10, 2022 11:26
リモートワークスタイルチェック

リモートワークスタイルチェック

昨今の社会情勢の影響もありリモートワークを導入する企業・チームが増えてきましたが、 一口に「リモートワーク」といってもさまざまなスタイルがあります。

企業側と働く側のミスマッチを防ぐため、リモートワークにおける観点を列挙してみました。

リモートワーク比重度

どの程度リモートワークに比重を置いて導入しているかのチェックリストです。

@kakutani
kakutani / reading-polished-ruby-translation.md
Last active November 3, 2021 14:06
Polished Ruby Programming翻訳査読書(のようなもの)

"Polished Ruby Programming" by Jeremy Evans

-- Build better software with more intuitive, maintainable, scalable, and high-performance Ruby code

「Rubyの磨きかた -- わかりやすくてメンテナンスしやすい、スケール可能で高性能なRubyコードでソフトウェアを上手につくろう」みたいな感じ?

https://www.packtpub.com/product/polished-ruby-programming/9781801072724

  • Publication date: June 2021
  • Publisher: Packt
  • Pages: 381
@yahonda
yahonda / how_to_run_rails_unit_test_locally.md
Last active January 20, 2021 02:34
How to run Rails unit test locally

Purpose

This document explains how to run Rails CI against Ruby master locally. This document is provided as is.

Prerequisite

  • Docker
  • git

Steps

@k-tsj
k-tsj / parallel.rb
Created September 19, 2020 15:57
Enumerator::Parallel
END {
8.times.parallel(n: 2).each { p _1 }
}
class Enumerator
class Parallel
def initialize(enum, n:)
@enum = enum
@n = n
end
@amrabdelwahab
amrabdelwahab / Research.md
Last active July 1, 2021 19:43
What is wrong with Ruby Project

What is wrong with Ruby? - Research project

Introduction

Our industry has a tendency to follow hypes without backing it with solid constructive claims. Over the past few years, trashing Ruby was one of these hypes, I also find that the so called "Senior Engineers" tend to promote hypes to appear more opinionated without really trying to explain the logical claims behind it, leaving the community beginners and new joiners really confused.

Goals of the project

  • Solidifying the claims behind the hype (Because I believe it stems from real problems, not just an empty hype) and eventually passing this to Ruby core team as an input from the community.
  • Explain these problems in a much simpler language to beginners and community new joiners.

Initial Focal points

@znz
znz / RubyPrize.md
Last active January 29, 2020 01:32
Ruby Prize 候補者(敬称略)
@koichiro
koichiro / sendai2018-omiyage.md
Last active May 9, 2018 04:21
仙台近郊観光まとめ

RubyKaigi 2018が仙台の国際センターで開催されるということでせっかくなので仙台近郊のオススメスポットを紹介します。

  • 仙台市内観光
  • 周遊バスにのると主要な観光スポットを全部まわれます
  • 晩翠草堂