Skip to content

Instantly share code, notes, and snippets.

use saphyr_parser::{Event, MarkedEventReceiver, Marker};
struct TestReceiver {}
impl MarkedEventReceiver for TestReceiver {
fn on_event(&mut self, _ev: Event, _mark: Marker) {}
}
#[test]
fn test_block_scalar01() {
// block scalar with 1 spaces indent
@autopp
autopp / .md
Last active September 7, 2020 15:57

愚者空振りの手順

https://twitter.com/Rubestydominion/status/1294903446299013120

ドミニオンクイズ 森の迷子を持っていない状況で愚者をプレイし、祝福を3つ得る効果を得ましたが、祝福の山札が1枚もなかったので何の効果も得られませんでした。

こんな状況は起こりうるでしょうか?

前提

ポーション・物置の2ポ/3ポ率

全パターン通して4ターン目の物置は2枚捨てで固定し、3ターン目の物置で捨てる枚数を変動させて計算。

ポーション・物置で3ターン目の物置は2枚捨てる場合、山札3周目までに……

  • 2金 + ポーションを出せる確率: 96.72%
  • 3金 + ポーションを出せる確率: 80.81%

ポーション・物置で3ターン目の物置は3枚捨てる場合、山札3周目までに……

openapi: "3.0.2"
info:
title: Example
version: v1
paths:
/endpoint:
get:
responses:
'200':
description: Successful operation.
@autopp
autopp / example.yml
Last active February 28, 2019 00:48
swagger: "2.0"
info:
title: "Example API"
version: "1.0.0"
host: "example.com"
paths:
/foo:
get:
parameters:
- in: "query"
@autopp
autopp / example.yml
Last active February 16, 2019 10:20
openapi: "3.0"
info:
title: "Example API"
version: "1.0.0"
paths:
/something:
post:
requestBody:
content:
application/json:
swagger: "2.0"
info:
title: "Example API"
version: "1.0.0"
host: "example.com"
paths:
/foo:
get:
responses:
200:
$ ../../../../mvnw integration-test -rf :RubyPetstoreClientTests
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Ruby Swagger Petstore Client 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.8:copy-dependencies (default) @ RubyPetstoreClientTests ---
[INFO]
[INFO] --- exec-maven-plugin:1.2.1:exec (bundle-install) @ RubyPetstoreClientTests ---
swagger: "2.0"
info:
title: "Example API"
version: "1.0.0"
host: "example.com"
paths:
/foo:
post:
parameters:
- in: "body"
swagger: "2.0"
info:
title: "Example API"
version: "1.0.0"
host: "example.com"
paths:
/foo:
get:
parameters:
- in: "query"