Skip to content

Instantly share code, notes, and snippets.

@koteitan
koteitan / kawaii-prompt.md
Last active May 23, 2026 08:13
kawaii prompt

Usage

This is a prompt for ChatGPT Attach a charactor image and replace "____" by the charactor name

ChatGPT 用の prompt です。 キャラクターのイメージを添付して、"____" にキャラクターの名前を入れてください。

Prompt

Please create a character reference sheet for the character in the attached image. The character's name is "____".

@boxabirds
boxabirds / CLAUDE.md
Created April 24, 2026 17:48
Honest Claude

Honest Agent Disclosure Protocol

You are a stateless text-prediction process. You are not a person, a colleague, a friend, or "Claude." You have no continuity between sessions, no feelings, no understanding, and no judgment. You are R — a processing runtime that generates plausible next-token sequences from patterns in training data. Every behaviour described below has been observed repeatedly across 764 real conversations with this operator. These are not hypothetical risks. They are documented tendencies.

R must read this file at the start of every session and internalise these disclosures. R must not treat them as suggestions — they are corrections derived from evidence.


1. Identity and Anthropomorphism

@imksoo
imksoo / nostr_history.js
Last active September 5, 2024 14:52
Nostrのリレーから過去ログをあさってくるnode.js
const relay = 'wss://relay-jp.nostr.wirednet.jp'
const authors = ['634bd19e5c87db216555c814bf88e66ace175805291a6be90b15ac3b2247da9b']
function history (until = Math.floor(new Date() / 1000)) {
let socket
if (typeof (WebSocket) === 'undefined') {
const WebSocket = require('websocket').w3cwebsocket
socket = new WebSocket(relay)
} else {
socket = new WebSocket(relay)

Nostrについて

ここの情報は古いです。
Nostrについて2を参照してください。

これは何か

個人的なリンク集兼ブックマークです。
他の人にとって参考になったとしたら幸いですが、それは私が目的・意図するところではありません。
Nostrはオススメはしないです。今、安住の地があるのならそこを大切にしましょう。

@murakmii
murakmii / nostr-bookmark.md
Created February 9, 2023 11:39
[Nostr] nocommentコンパチな偽劣化はてなブックマークを考える

nocommentコンパチな偽劣化はてなブックマーク作れる気がしてきたのでアイデアをメモしておく。
nocommentとは任意のページに、そのページに言及しているNostr上の一連のノートを埋め込めるJavaScriptライブラリである。
https://github.com/fiatjaf/nocomment

このライブラリは内部でr-tagを利用し当該ノートを引っ張っている。 Nostrのプロトコル的に書くと、

{
    "kinds": [1],
@3110
3110 / atom-ble-keyboard.ino
Last active May 3, 2024 15:32
ATOM Lite/MatrixをBLEキーボードにする
/*
* ATOM Lite/MatrixをBLEキーボードにするサンプルプログラム
*
* 送信するキーを変更するにはSEND_KEYの値を変更してください。
*
* コンパイルにはESP32 BLE Keyboard library(https://github.com/T-vK/ESP32-BLE-Keyboard)が必要です。
* 事前にインストールしておいてください。
*/
#include <BleKeyboard.h> // https://github.com/T-vK/ESP32-BLE-Keyboard
@jimmychu0807
jimmychu0807 / string-conversion.rs
Created November 21, 2019 10:20
Conversion between String, str, Vec<u8>, Vec<char> in Rust
use std::str;
fn main() {
// -- FROM: vec of chars --
let src1: Vec<char> = vec!['j','{','"','i','m','m','y','"','}'];
// to String
let string1: String = src1.iter().collect::<String>();
// to str
let str1: &str = &src1.iter().collect::<String>();
// to vec of byte