Skip to content

Instantly share code, notes, and snippets.

View hnakamur's full-sized avatar

Hiroaki Nakamura hnakamur

View GitHub Profile

3 Common Misunderstandings About Vue, and 4 Reasons Why I Choose Vue

Yutaro Koizumi

2025-09-30

A Frontend Night to Know the Respective Merits of Next.js vs Nuxt


@tak-dcxi
tak-dcxi / typography.md
Last active January 26, 2026 04:35
タイポグラフィCSS

タイポグラフィ

font-family

  • フォントは Web サイトの印象に直結するため、一概にこれが良いとは言えない。
  • 特にこれと言った指定がされていない場合は font-family: sans-serif のみで良い。
    • Windows 11/10 では 2025 年のアップデートにより Noto Sans JP が標準搭載された。色々と問題があった游ゴシックの呪縛から解放されたのは大きい。
    • Android はメーカーにより削除されている可能性はあるが、そうでない場合は原則的に Noto Sans CJK JP が適用される。
    • Mac/iOS はヒラギノ角ゴ ProN が適用される。
  • アップデートによるフォントの変更の懸念はあるものの、ディスレクシアの方々は UD デジタル教科書体などの読みやすいフォントを設定している可能性があるため、アクセシビリティの観点では font-family: sans-serif の指定を推奨する。
@yohhoy
yohhoy / awaitable-coroutine.cpp
Last active June 13, 2025 09:02
C++26 Sender/Receiver and awaitable Coroutine
#include <coroutine>
#include <print>
// https://github.com/NVIDIA/stdexec/
#include <stdexec/execution.hpp>
namespace ex = stdexec;
template<typename T>
class Lazy {
public:
@kawaz
kawaz / op-run.sh
Last active April 3, 2025 09:43
1password CLI の op run を、引数でもインジェクション出来るようにするラッパースクリプト。
#!/usr/bin/env bash
# 1Password CLI の op run を、引数でもインジェクション出来るようにするラッパースクリプト。
# https://gist.github.com/kawaz/a2d0c5bece913a34d2a6d4a02ca6cc3c
op_args=()
while (( 0 < $# )); do
a=$1
shift
op_args+=("$a")
[[ $a == -- ]] && break
@kazuho
kazuho / sshd-tcpd.socket
Last active July 3, 2024 14:29
sshd + tcp wrappers
# こいつは systemctl enable sshd-tcpd.socket する
[Unit]
Description=ssh
ConditionPathExists=!/etc/ssh/sshd_not_to_be_run
Conflicts=ssh.socket
[Socket]
ListenStream=22
Accept=yes
@gingerBill
gingerBill / dumb_handle_map.odin
Last active January 8, 2026 23:19
Handle-based Map
package dumb_handle_map
// NOTE: ONLY TO SHOW WHAT A GENERATION IS DOING
// BUT DOES NO INSERTION WHATSOEVER
Handle_Map :: struct($T: typeid) {
entries: [dynamic]Entry(T),
}
Entry :: struct($T: typeid) {
@skeeto
skeeto / main.c
Last active October 7, 2024 00:49
// Ref: https://old.reddit.com/r/C_Programming/comments/1dlc4kw
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define new(n, t) (t *)calloc(n, sizeof(t))
typedef struct node node;
struct node {
@laytan
laytan / LICENSE
Last active January 24, 2026 17:52
LLDB script to visualise Odin slices, maps, and strings
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
@orimanabu
orimanabu / ansible_enable_winrm_with_openssl_self_certificate.md
Last active March 5, 2024 11:48
Enable WinRM for Ansible using self signed certificate generated by OpenSSL

はじめに

これは、AnsibleでWindowsを管理するために、WinRMにHTTPSで接続できるよう設定するためのドキュメントです。 自己証明書は、PowerShellの New-SelfSignedCertificate ではなくLinux上でopensslコマンドで作成したものを使用します。

設定対象のWindows VMを

  • ホスト名: wintest1
  • IPアドレス: 192.168.122.70
@kumagi
kumagi / virtual_memory_limit.c
Last active October 29, 2023 07:39
mmap_max
#include <memory.h>
#define _XOPEN_SOURCE_EXTENDED 1
#include <sys/mman.h>
#include <stdint.h>
#include <stdio.h>
#include <climits>
#include <algorithm>
int main() {