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
| #!/usr/bin/env python3 | |
| # /// script | |
| # requires-python = ">=3.8" | |
| # dependencies = [ | |
| # "psutil>=5.9.0", | |
| # "pyyaml>=6.0", | |
| # "packaging>=21.0", | |
| # ] | |
| # /// | |
| """ |
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
| ⏺ 完璧です!解決方法が見つかりました。Linear APIキーを使ってAuthorizationヘッダー経由で認証できます。 | |
| 完全な解決手順 | |
| 1. Linear APIキーを作成(Mac/ブラウザで) | |
| 1. Linear にアクセス: https://linear.app | |
| 2. プロフィールアイコン → Settings をクリック | |
| 3. Security & access → Personal API keys に移動 | |
| 4. New API key をクリック |
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 |
NewerOlder