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
@kddnewton
kddnewton / json.rb
Last active October 6, 2023 09:25
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が仙台の国際センターで開催されるということでせっかくなので仙台近郊のオススメスポットを紹介します。

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

ruby-lang.org でやろうと思ってること

優先順位が高いものから並べてます

  • ruby-lang.org が lists.ruby-lang.org を返していて invalid https になっているのを直す
  • neon.ruby-lang.org のリプレイス、NaCl の Xen で動かしているマシンを AWS に持って行く(debian7 to 9 も同時にやる)
  • neon の移設に合わせてメールサーバーとパッケージ配信サーバーに分離して AWS に構築する(作業ボリューム読めないのでダメなら上記の移設だけやる)
  • www.r-l.o に news と announce それぞれの rss を作成して、twitter の rubylangorg アカウントを適切に使うようにする
  • rubyci に流している www.r-l.o の rss を止めるよう eban さんに連絡する(調整だけっぽい)
  • パッケージ配信の origin を s3 にする(neon でパッケージを作ってるので作成ごアップロード、というような補助ツールを作る)