macOSでスクリーンショットを撮影した画像を、SSH接続したリモートLinuxやdevcontainer内で実行しているClaude CodeにCtrl+Vで直接貼り付ける方法を説明します。
This file contains hidden or 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
| https://nyacom.net/?p=890 | |
| Skip to content | |
| about | |
| mac | |
| 【備忘録】Apple SiliconマシンでMinecraft Bedrock版を動かす | |
| October 5, 2025 |
This file contains hidden or 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/env python3 | |
| """ | |
| 純粋 Python だけで **SMF (Standard MIDI File)-format 0** を書き出す最小サンプル。 | |
| - MThd / MTrk チャンクを手動組み立て | |
| - Set-Tempo → Note On → Note Off → End-of-Track という典型的な並び | |
| - 可変長数量 (VLQ) も自前実装 | |
| gist に貼り付けてそのまま動かせます(`example.mid` が生成されます)。 | |
| """ | |
| import struct |
This file contains hidden or 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
| import numpy as np | |
| class Splat: | |
| def __init__(self, position, rotation, scale, opacity, color): | |
| self.position = position | |
| self.rotation = rotation | |
| self.scale = scale | |
| self.opacity = opacity | |
| self.color = color |
This file contains hidden or 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
| # M5 Atom Matrix Beautiful LED Demo | |
| # 自然現象と数学的パターンを組み合わせた魅力的なデモ | |
| # mruby/c 3.3の制限事項と注意点 | |
| # 使用可能な機能: | |
| # - 基本的な算術演算(+, -, *, /, %)※ただし整数のみ | |
| # - 配列操作(each, each_with_index) | |
| # - 条件分岐(if, case) | |
| # - ループ(times, while, downto) | |
| # - LED.set([r,g,b], pos) - LEDの色設定 |
This file contains hidden or 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
| function proxy(obj: any) { | |
| return new Proxy(obj, { | |
| set: function (target, property, value, receiver) { | |
| console.log(`[proxy.set] property=${String(property)} value=${value}`); | |
| return Reflect.set(target, property, value, receiver); | |
| }, | |
| get: function (target, property, receiver) { | |
| const value = Reflect.get(target, property, receiver); | |
| if (typeof value !== "function") { | |
| console.log(`[proxy.get] property=${String(property)}`); |
This file contains hidden or 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
| set -xe | |
| # INSTANCE=xxxxx | |
| # ZONE=us-central1-a | |
| # PROJECT=yyyyy | |
| # #ACCELERATORTYPE="" | |
| # ACCELERATORTYPE="nvidia-tesla-t4" | |
| # #ACCELERATORTYPE="nvidia-tesla-v100" | |
| # MACHINETYPE=n1-standard-2 |
This file contains hidden or 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
| # python -m venv .venv | |
| # .venv/bin/python3 -m pip install google-cloud-storage chardet | |
| # .venv/bin/python3 download.py gs://xxx/xxx/xxx.txt xxx.txt | |
| import sys | |
| from google.cloud import storage | |
| from urllib.parse import urlparse | |
| _, gsurl, output_path = sys.argv |
The simplest open protocol that is able to create a censorship-resistant global "social" network once and for all.
検閲に強いグローバルな「ソーシャル」ネットワークを一挙に構築することができる最もシンプルなオープンプロトコルです。
It doesn't rely on any trusted central server, hence it is resilient; it is based on cryptographic keys and signatures, so it is tamperproof; it does not rely on P2P techniques, therefore it works.
信頼できる中央サーバーに依存しないので弾力性があり、暗号鍵と署名に基づくので改ざん防止になり、P2P技術に依存しないので機能するのです。
NewerOlder