Skip to content

Instantly share code, notes, and snippets.

View hkoba's full-sized avatar

Kobayasi, Hiroaki hkoba

View GitHub Profile
@Cryolite
Cryolite / client
Created February 7, 2019 16:25
https://qiita.com/nwtgck/items/78309fc529da7776cba0 のプロトコル上に証明書による安全な鍵交換を実装する PoC コード
#!/usr/bin/env bash
set -euo pipefail
if [[ -v VERBOSE ]]; then
set -x
PS4='+$LINENO: '
fi
function print-error-message ()
{
@LambdaNote
LambdaNote / writing.md
Last active May 18, 2025 16:18
ラムダノートでの原稿の書き方

ラムダノートでの原稿の書き方

記事の執筆には、Markdown形式を利用してください。 Markdownにはさまざまな流派がありますが、GitHub Flavored Markdown(https://github.github.com/gfm/ )をベースとした書式を採用します。

書籍を執筆するための形式として考えると、Markdownには不足している機能が多々あります。 しかし、次のような利点があるので、Markdownを採用することにします。

  • 最低限の構造しかないので、見た目でごまかせる余地が少ない
  • 原稿を著者自身が再利用してもらいやすくしたい
@kawasima
kawasima / 00_architecture_corpus.md
Last active October 5, 2023 07:26
アーキテクチャ大全 (未完) のサンプル

アーキテクチャ大全のサンプル

これくらいの実例とともにソリューション選択できるようにしていきたい。

/*
* lock_fairness_test.c
*
* test program to see unfair behavior of mutex/rwlock/POSIX semaphore.
*
* NOTE:
* The unfairness is not necessarily a bug, since POSIX doesn't say anything
* about fairness, and also the critical section shouldn't be this long.
*
* Fair behavior of this program is that elapsed time is printed
@azu
azu / 0.md
Last active April 29, 2020 15:26
Oculus GoのブラウザでDアニメを再生する方法

Oculus Goの標準ブラウザでDアニメを見る手順

1. dアニメストアへログイン

dアニメストアをブラウザで開きログインする

2. ブラウザ右上の"デスクトップをリクエスト"をONにしてPC表示

モバイル表示だと"視聴する"ボタンを押したときにポップアップが開けずに再生画面へたどり着けないため、あらかじめPC表示にする。 サイトとプレイヤーでそれぞれPC表示にする必要があることに注意

@jkeroes
jkeroes / Perl testing
Last active November 19, 2019 01:51
Perl testing.md
# Testing
## SYNOPSIS
use Ndn::Test::Bundle -target => 'Ndn::Foo'; # Sets $CLASS to 'Ndn::Foo'
database dreamhost {
table foo {
row { col1 => 1, col2 => 2 };
row { col1 => 3, col2 => 4 };
type point = (int, int);
type game_of_life = {
width: int,
height: int,
field: list(bool)
};
let search_dirs: list(point) =
@voluntas
voluntas / working_time.rst
Last active October 21, 2024 15:20
時雨堂を支える固定時間労働 1 日 6 時間

時雨堂を支える固定時間労働 1 日 6 時間

更新:2024-01-20
作者:@voluntas
バージョン:2024.1
URL:https://voluntas.github.io/

概要

@ufcpp
ufcpp / FamiliEmojis.cs
Last active June 13, 2019 10:15
「人種のるつぼ」ネタをtwitterで見かけて、つい
using static System.Linq.Enumerable;
var parentals = new[] { "👩", "👨" };
var infants = new[] { "👦", "👧" };
var skinTones = new[] { "🏻", "🏼", "🏽", "🏾", "🏿" };
const char zwj = '\u200D';
var families =
from a in from f in parentals from s in skinTones select f + s
from b in from f in parentals from s in skinTones select f + s