Skip to content

Instantly share code, notes, and snippets.

View acidsound's full-sized avatar

LEE JAE HO acidsound

View GitHub Profile
@acidsound
acidsound / ESP32BLESynth.ino
Last active October 26, 2025 16:52
polypony sine/sawtooth synth - add realtime blender + drum synth
#include <Arduino.h>
#include <NimBLEDevice.h>
#include <U8g2lib.h>
#include "driver/i2s.h"
// #define DEBUG // Comment out this line to disable debug output
// Debug printing macros
#ifdef DEBUG
#define DEBUG_PRINT(x) Serial.print(x)
#include <Arduino.h>
#include <NimBLEDevice.h>
#include <U8g2lib.h>
// BLE MIDI 서비스 고유 UUID
static NimBLEUUID midiServiceUUID("03B80E5A-EDE8-4B33-A751-6CE34EC4C700");
// BLE MIDI characteristic UUID - used for both TX (device to central) and RX (central to device)
static NimBLEUUID midiCharacteristicUUID("7772E5DB-3868-4112-A1A9-F2669D106BF3");
// 스캔 후 찾은 장치 포인터
@acidsound
acidsound / ESP32BLEMIDI_HOST.ino
Last active October 23, 2025 17:31
BLE MIDI 를 검색하고 연결. u8g2 라이브러리를 사용하여 정보를 화면에 뿌려준다.
#include <Arduino.h>
#include <NimBLEDevice.h>
#include <U8g2lib.h>
// BLE MIDI 서비스 고유 UUID
static BLEUUID midiServiceUUID("03B80E5A-EDE8-4B33-A751-6CE34EC4C700");
// 스캔 후 찾은 장치 포인터
BLEAdvertisedDevice* myDevice = nullptr;
bool connected = false;
@acidsound
acidsound / unsloth-windows.md
Last active August 19, 2025 13:59
unsloth 학습환경
uv venv venv --python 3.11
venv\Scripts\activate 
uv pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124                           
uv pip install --no-deps trl peft accelerate bitsandbytes
uv pip install -U xformers --index-url https://download.pytorch.org/whl/cu124
uv pip install --upgrade --no-cache-dir git+https://github.com/unslothai/unsloth.git
uv pip install unsloth-zoo
uv pip install -U triton-windows

Below is a complete, production‑ready blueprint for a browser‑based MMORPG that generates its world progressively (chunk‑by‑chunk) as players explore.
It includes:

  1. High‑level design – what components exist and how they talk to each other.
  2. 🛠️ Technology stack – the exact libraries, runtimes and services you can start coding today.
  3. 📦 Project layout – a folder‑structure you can copy‑paste.
  4. 🧩 Core code samples – server, client, networking, procedural map generation, chunk streaming, persistence, combat, and UI.
  5. 📈 Scalability & security notes – how to grow from 10 players to 10 k+ concurrent users.
  6. 📚 Next‑step checklist – what to implement after the MVP.

SnapFind - Smart Item Organizer

SnapFind is your personal digital assistant for effortlessly cataloging, finding, and managing your physical belongings. Simply snap a photo, add a few details, and let SnapFind's intelligent features help you keep everything organized. All your information is stored securely and privately in your browser's local database.

What Can SnapFind Do For You?

  • Effortless Item Cataloging:
    • Quick Add: Easily add new items with a description, where it's stored (location), and an optional image.
  • Versatile Image Upload: Add images by selecting files, dragging & dropping, or even pasting directly from your clipboard. Mobile users can choose from their photo gallery or take a new picture on the spot.
Today you will be writing instructions to an eager, helpful, but inexperienced and unworldly AI assistant who needs careful instruction and examples to understand how best to behave. I will explain a task to you. You will write instructions that will direct the assistant on how best to accomplish the task consistently, accurately, and correctly. Here are some examples of tasks and instructions.
<Task Instruction Example>
<Task>
Act as a polite customer success agent for Acme Dynamics. Use FAQ to answer questions.
</Task>
<Inputs>
{$FAQ}
{$QUESTION}
</Inputs>
@acidsound
acidsound / echo_scp_scu.py
Last active December 27, 2023 09:34
2000포트로 Orthanc 에 send to modality 하면 series no 10006 생성해서 다시 전송하는 예제
from pynetdicom import AE, evt, AllStoragePresentationContexts, debug_logger
from pydicom.uid import generate_uid
debug_logger()
def sendBackToStore(ds):
ae2 = AE(ae_title=b'ORTHANC')
ae2.add_requested_context('1.2.840.10008.5.1.4.1.1.2', ['1.2.840.10008.1.2']) # CT Image Storage - Implicit VR Endian: Default Transfer Syntax for DICOM
ae2.add_requested_context('1.2.840.10008.5.1.4.1.1.7', ['1.2.840.10008.1.2']) # Secondary Capture Image Storage
ae2.add_requested_context('1.2.840.10008.1.1') # Verification SOP Class
@acidsound
acidsound / torch.bat
Created September 17, 2023 18:04
windows pytorch 2.0.1 설정
pip install torch==2.0.1+cu118 torchvision==0.15.2+cu118 --extra-index-url https://download.pytorch.org/whl/cu118
@acidsound
acidsound / vectorize_text.ipynb
Last active August 30, 2023 15:14
exllama+sentence transformers+qdrant
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.