Skip to content

Instantly share code, notes, and snippets.

@sanfrecce-osaka
sanfrecce-osaka / my_batch_executor.rb
Created October 29, 2019 00:29
my_batch_executor.rb
class MyFatalError < StandardError; end
class MyRetryableError < StandardError; end
class MyBatchExecutor
def initialize(*batches)
@batches = batches
end
def execute
retryable = true
@sanfrecce-osaka
sanfrecce-osaka / nabeatsu.rb
Last active December 4, 2018 08:49
西脇.rb & 神戸.rbのRubyプログラミングキャンプ 2018でのアイスブレイクの解答(問題:https://scrapbox.io/yoshito-note/20181110_icebrake#5be616eb95dac50000fb7fe7
require 'minitest/autorun'
def nabeatsu(input)
(1..input).map(&:aho).push('omoro').join(' ')
end
class Integer
def aho
aho? ? 'Aho' : self
end
@sanfrecce-osaka
sanfrecce-osaka / gist:8ce81f05c285d0d153ee06b15c2e84b5
Last active November 9, 2017 03:45 — forked from machida/html_practice.html
HTMLの練習(このレシピにマークアップをしてみましょう)
<!DOCTYPE html>
<html lang="ja">
<head>
<title>カレーのレシピ</title>
<meta charset="UTF-8">
<meta name="author" content="山田サチ子">
</head>
<body>
<h1>カレーのレシピ</h1>