This is an OpenPGP proof that connects my OpenPGP key to this Github account. For datails check out https://keyoxide/guides/openpgp-proofs
[Verifying my OpenPGP key: openpgp4fpr:QQ63BVDOAD26UBZ5HMJIW5PJRM]
#include <iostream> | |
#include <stdexcept> | |
#include <windows.h> | |
std::string hresult_to_string( HRESULT hr ) { | |
constexpr size_t MESSAGE_BUFFER_SIZE = 1024; | |
CHAR message[MESSAGE_BUFFER_SIZE] = {}; | |
DWORD got = FormatMessageA( FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, | |
nullptr, |
#include <iostream> | |
#ifdef _MSVC_LANG | |
# if _MSVC_LANG >= 201402L | |
# define HOGE_LANGUAGE_ENABLE_CXX14 | |
# endif //* _MSVC_LANG <= 201402L */ | |
# if _MSVC_LANG >= 201703L | |
# define HOGE_LANGUAGE_ENABLE_CXX17 | |
# endif //* _MSVC_LANG <= 201703L */ |
This is an OpenPGP proof that connects my OpenPGP key to this Github account. For datails check out https://keyoxide/guides/openpgp-proofs
[Verifying my OpenPGP key: openpgp4fpr:QQ63BVDOAD26UBZ5HMJIW5PJRM]
def not_enough_cats? | |
true | |
end | |
def buy_cat() | |
purchases = rand(6) + 1 | |
puts "ねこを #{purchases} 匹購入しました。" | |
end | |
while true |
DataColumn
の例を今の書き方で書くならこんな感じ:
void make_table() {
// DataTable インスタンスを作成します。
var table = new DataTable("商品");
// 列定義をタプルの配列で作成します。
var columnDefinitions = new (string name, Type dataType, bool allowNull)[] {
(name: "id" , dataType: typeof(long) , allowNull: false),
sequenceDiagram
にゃんぷっぷー ->> 飼い主 : 愛嬌を振りまく
飼い主 ->> にゃんぷっぷー : 餌を与える
'./championships.create.sql'.IO.spurt( q:to/END/ ); | |
CREATE TABLE "championships" ( | |
"championship_id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, | |
"champion_kind_id" INTEGER NULL, | |
"name" TEXT NULL | |
); | |
END | |
'./championship_kinds.create.sql'.IO.spurt( q:to/END/ ); | |
CREATE TABLE "championship_kinds" ( |
my @championships = './championship000.tsv'.IO.lines; | |
my %classificated = classify { | |
when /['女皇帝' || '皇帝'] $/ { '皇帝' } | |
when /'内親王' $/ { '内親王' } | |
when /'親王' $/ { '親王' } | |
when /'法王' $/ { '法王' } | |
when /'上級王' $/ { '上級王' } | |
when /['王' || '女王' ] $/ { '王' } | |
when /['王子' || '王女' ] $/ { '王息' } |
「いっぱい」の「い」を「お」に変えてみよう。
my $phrase = 'いっぱい';
Raku 言語においては .subst
メソッドを使うと文字列の置換を行うことができる。
早速やってみよう。
みんな大好き「おっぱい」になるのは最初の「い」を「お」に変えたときだ。