Avatar
AsaiToshiya
0a2f19dc1a185792c3b0376f1d7f9971295e8932966c397935a5dddd1451a25a
📝 https://notes.asaitoshiya.com/

コスパで

Transcend TS128GMTE110S 128GB M.2 NVMe PCIe Gen3x4

https://kakaku.com/item/K0001060795/

¥3,780

#自作PC

先行ゼロ付きの日付/時刻文字列

```

const date = new Date(Date.now() - new Date().getTimezoneOffset() * 60000);

const dateTime = date.toISOString().replace("T", " ").split(".")[0];

console.log(dateTime);

// 2024-07-10 15:25:01

```

#javascript

必要になったらやる

今年初の蝉の鳴き声

NIP-136: Code packages

https://github.com/brugeman/nips/blob/nip/136/136.md

ファイル パッケージ (インデックス)

例:

```

{

"content": "Super cool!",

"kind": 1036,

"tags": [

["title", "Taste"],

["summary", "A Ghost theme"],

["version", "1.0.0"],

["changes", "Great improvements"],

["license", "MIT"],

["x", <パッケージ ハッシュ>],

// ファイルのリスト

// ["f", <ファイル ハッシュ>, <相対ファイル パス>, <ファイルの URL>]

[

"f",

"7db7d6130b9b667001841b79ee67760619a80b9df305b8bfb872e22265313cf5",

"LICENSE",

"https://blossom.nostr.hu/7db7d6130b9b667001841b79ee67760619a80b9df305b8bfb872e22265313cf5"

],

...,

],

...,

}

```

PR: https://github.com/nostr-protocol/nips/pull/1347

#Nostr

わかんないっピ

NIP-512: Nostr Sites

https://github.com/brugeman/nips/blob/nip/512/512.md

イベントを HTML として表示するための仕組み?

`kind: 30512` は Nostr サイトのメタデータ

`kind: 30512` の `include` タグと `kind` タグや `kind: 512` の Submit イベントからフェッチしたコンテンツを表示する

レンダラー エンジンは `kind: 30512` の `z` タグで指定される

この NIP では、ハッシュタグ ページやテーマなども定義している

PR: https://github.com/nostr-protocol/nips/pull/1348

#Nostr

awesome-nostr のコミットのキャッチアップ

https://github.com/aljazceru/awesome-nostr/commits/main/?since=2024-07-05&until=2024-07-09&author=aljazceru

#キャッチアップ #awesomenostr

NIPs のコミットのキャッチアップ

https://github.com/nostr-protocol/nips/commits/master/?since=2024-07-05&until=2024-07-08

* NIP-01: Basic protocol flow description

* `since` と `until` がより明確にされた

#キャッチアップ #nips

Replying to Avatar AsaiToshiya

* NIP-29: Relay-based Groups

* `create-group` (`kind: 9007`) が追加された

#キャッチアップ #nips