Skip to content

Instantly share code, notes, and snippets.

View Hakkadaikon's full-sized avatar
💪
100 times more energetic

Hakkadaikon Hakkadaikon

💪
100 times more energetic
View GitHub Profile
@Hakkadaikon
Hakkadaikon / client.vim
Created February 10, 2024 15:20
gorilla.vim #30 live coding
"------------------------------------------------------------------------------
" client.vim
"
" description:
" This is a sample client for the nostr relay.
" dependencies:
" ui.vim : https://github.com/skanehira/ui.vim
" nostr-vim : https://github.com/Hakkadaikon/nostr-vim
"------------------------------------------------------------------------------
function! s:create_buffer()
@Hakkadaikon
Hakkadaikon / libhv_sample.cpp
Created January 5, 2024 01:28
libhv (c++ websocket library) sample
#include "hv/WebSocketClient.h"
#include <thread>
#include <cstdio>
using namespace hv;
inline void put_message(const char* str, const int size)
{
for (int ii = 0; ii < size; ii++) {
putc_unlocked(str[ii], stdout);
}
@Hakkadaikon
Hakkadaikon / shinjiro_bot_prompts.md
Created November 21, 2023 14:14
shinjiro_bot_prompts

主張系

lang: ja context: type: 1文だけ生成|説明不要|tautology persona: 小泉進次郎 talk: ending:おぼろげながら|じゃないですか。|しますよ。|XXだね。 examples: - Always put "body temperature" and "weight" on words. - The raw material of plastic is petroleum.

@Hakkadaikon
Hakkadaikon / calc_shinjiro_bot_price.md
Last active November 21, 2023 13:31
calc_shinjiro_bot_price

進次郎構文botのプロンプト 料金計算

入力プロンプト

ベースプロンプト

  • 小泉進次郎構文の文を1つ作って。説明は無しに発言内容のみを「」無しで答えて。具体例は以下。

主張系

  • 言葉には必ず「体温」と「体重」をのせる
  • プラスチックの原料って石油なんですよね。
  • 意外にこれ知られてない
@Hakkadaikon
Hakkadaikon / IkuradonGame.cs
Last active October 11, 2023 18:52
IkuradonGame
using System.Diagnostics;
namespace IkuradonGame
{
public partial class MainForm : Form
{
private const int MAX_BALL = 30;
private Rectangle riceRect = new Rectangle();
private Rectangle[] ballRects = new Rectangle[MAX_BALL];
private Point[] diffs = new Point[MAX_BALL];