This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <assert.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <wchar.h> | |
#include <Windows.h> | |
auto main() -> int { | |
wchar_t buffer[256] = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# -*- mode: perl; -*- | |
use v5.38.2; | |
use Data::Entropy::Algorithms qw(rand_int choose_r); | |
use Getopt::Long; | |
use Path::Class; | |
use Pod::Usage; | |
my $amount = rand_int(6) + 1; | |
my $help = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <random> | |
int32_t pick( std::mt19937_64 &engine, int32_t min, int32_t max ) { | |
std::uniform_int_distribution<> dist( min, max ); | |
return dist( engine ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <vector> | |
#include <iostream> | |
#include <random> | |
#include <string> | |
constexpr auto CAPACITY = 1024; | |
int main() { | |
std::random_device seed_generator; | |
std::mt19937_64 engine{ seed_generator() }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my @katakana-female-names = './katakana-female-names000.tsv'.IO.lines; | |
my @katakana-male-names = './katakana-male-names000.tsv'.IO.lines; | |
my @klasses = <戦士 盗賊 僧侶 魔法使い 侍 君主 司教>; | |
my @sexes = <男 女>; | |
my @alignment = <善 中立 悪>; | |
my @races = <人間 ドワーフ エルフ ホブ ノーム>; | |
my $generate-amount = (6..12).pick; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# `pkg-config.list-all.txt` を作成します。 | |
pkg-config --list-all | sort -u > ./pkg-config.list-all.txt | |
# おまけで `./digraph` ディレクトリを作るかもしれない。 | |
mkdir ./digraph |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
User | |
``` scheme | |
(define-syntax dolist | |
(syntax-rules () | |
((_ (it seq result)) | |
(let loop ((xs seq)) | |
(if (null? xs) | |
result | |
(begin | |
(let ((it (car xs))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(include "./reiteration.scm") | |
(dolist (i '(0 1 2 3 4 5 6 7 8 9)) | |
(display i) | |
(display " ")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Example.Sort do | |
def sort([]), do: [] | |
def sort([head | tail]), do: insert(head, sort(tail)) | |
defp insert(elt, lst) do | |
case lst do | |
[] -> | |
[elt] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
User | |
コラボレーティブストーリーテリングをしましょう。 | |
私が舞台、主要キャラクター、テーマ、プロットのはじめの方を書くので、あなたがプロットの続きを少しだけ考え、私がその後に少しだけ考え…という風に続けていきましょう。 | |
- 舞台 :: 中世ファンタジー世界のデュランタ市周辺 | |
- 主要キャラクター :: 不明 | |
- テーマ :: デュランタ聖戦 | |
- プロットのはじめの方 :: | |
デュランタ市は複数の宗教における聖地とされ、長くロシティ教ミポフォル派が支配していたが、フォルピピ神殿騎士団の軍勢に包囲されつつあった |
NewerOlder