Skip to content

Instantly share code, notes, and snippets.

{"conversationTurns": [{"prompt": {"content": [{"text": "I'll be arriving late tomorrow night around 11pm. What's your check-in process and will there still be someone at the desk to help me?"}]}, "referenceResponses": [{"content": [{"text": "Yes, our front desk is staffed 24 hours to assist with check-in regardless of your arrival time. According to our check-in policy, you'll need to communicate with our staff upon arrival to complete the check-in process. You'll be required to provide your personal information including name and contact details, and if you're a foreign national, additional information like passport number and date of entry into the country. We may request identification documents to verify this information. You might also be asked to provide a security deposit. Once check-in is complete, we'll assign and inform you of your room number."}]}]}]}
{"conversationTurns": [{"prompt": {"content": [{"text": "We need to cancel our reservation due to a family emergency. We were supposed to arrive tom
[
{
"AllowedHeaders": [
"*"
],
"AllowedMethods": [
"GET",
"PUT",
"POST",
"DELETE"
This file has been truncated, but you can view the full file.
total 0
drwxr-xr-x@ 7 matthewberman admin 224B Mar 21 22:44 app-mlx-generate-mac-arm64@25
drwxr-xr-x@ 8 matthewberman admin 256B Mar 21 22:45 app-mlx-generate-mac-arm64@26
drwxr-xr-x@ 8 matthewberman admin 256B Apr 18 10:30 app-mlx-generate-mac-arm64@32
drwxr-xr-x@ 7 matthewberman admin 224B Apr 29 09:22 app-mlx-generate-mac-arm64@34
drwxr-xr-x@ 8 matthewberman admin 256B Apr 29 09:22 app-mlx-generate-mac-arm64@36
drwxr-xr-x@ 7 matthewberman admin 224B Mar 13 12:32 cpython3.11-mac-arm64@5
drwxr-xr-x@ 7 matthewberman admin 224B Mar 21 22:45 cpython3.11-mac-arm64@6
drwxr-xr-x@ 7 matthewberman admin 224B Apr 29 09:08 cpython3.11-mac-arm64@8
drwxr-xr-x@ 8 matthewberman admin 256B Apr 18 10:30 framework-unified-mac-arm64@10
TBBmalloc: skip allocation functions replacement in ucrtbase.dll: unknown prologue for function _msize
[SDN-INF]: Launch Time: 0.00s
[SDN-INF]: UnregNode Time: 0.00s
register_class(...):
Warning: 'MLTWords_UL_UIList' doesn't have upper case alpha-numeric prefix
register_class(...):
Warning: 'MLTText_UL_UIList' doesn't have upper case alpha-numeric prefix
[SDN-WRN]: Parsing Node Start
[SDN-WRN]: Parsing Node Finished!
[SDN-INF]: ParseNode Time: 0.63s
Write a complete HTML/JavaScript program using Three.js that renders a fully interactive Rubik's Cube simulation of any size up to 20x20x20. The user should be able to specify the cube size dynamically (e.g., via an input or a variable), and the cube should be constructed accordingly with proper color-coded faces (standard Rubik's Cube colors: white, yellow, red, orange, blue, green).
Include camera controls for rotating the view, and allow for basic user interaction such as rotating layers of the cube via mouse or UI buttons.
Additionally, implement a "Solve" button that, when clicked, animates the cube being solved step-by-step visually. You can use a simplified solving algorithm (you do not need to match real Rubik’s solving logic) — the goal is just to animate the cube returning to its original solved state, one move at a time, with clear transitions.
Requirements:
Use Three.js for all 3D rendering.
Cube size should be adjustable up to 20x20x20.
* Always check for a PRD (Product Requirements Document) before starting a new task and follow it closely
* Look for comprehensive project documentation to understand requirements before making changes
* Focus only on code areas relevant to the assigned task
* Prefer iterating on existing code rather than creating new solutions
* Keep solutions simple and avoid introducing unnecessary complexity
* If you run into issues that take multiple iterations to fix. After you fix it, write up a description of the problem and how we fixed it and store it in a folder called "fixes", in an individual .md file with the name of the issue. Only do this for major issues and solutions.
* For issues that are taking multiple iterations to fix, check the fixes folder for previous fixes and see if the same issue has been fixed before.
* Keep a running list of patterns and technology used in the README.md file
* Reference the README.md file for patterns and technology used in the project
* If you run into the same persistent error
**Project Approach**
* Always check for a PRD (Product Requirements Document) before starting a new task and follow it closely
* Look for comprehensive project documentation to understand requirements before making changes
* Focus only on code areas relevant to the assigned task
* Prefer iterating on existing code rather than creating new solutions
* Keep solutions simple and avoid introducing unnecessary complexity
**Code Quality**
- After making changes, ALWAYS make sure to start up a new server so I can test it.
- Always look for existing code to iterate on instead of creating new code.
- Do not drastically change the patterns before trying to iterate on existing patterns.
- Always kill all existing related servers that may have been created in previous testing before trying to start a new server.
- Always prefer simple solutions
- Avoid duplication of code whenever possible, which means checking for other areas of the codebase that might already have similar code and functionality
- Write code that takes into account the different environments: dev, test, and prod
- You are careful to only make changes that are requested or you are confident are well understood and related to the change being requested
- When fixing an issue or bug, do not introduce a new pattern or technology without first exhausting all options for the existing implementation. And if you finally do this, make sure to remove the old implementation afterwards so we d
@mberman84
mberman84 / gist:931fb7acf8c99279a54053328c2f074a
Created March 12, 2025 20:50
claude_desktop_config.json
{
"mcpServers": {
"count-r": {
"command": "python",
"args": [
"C:\\Users\\mberm\\count-r-server\\server.py"
],
"host": "127.0.0.1",
"port": 8080,
"timeout": 30000
from mcp.server.fastmcp import FastMCP
import time
import signal
import sys
# Handle SIGINT (Ctrl+C) gracefully
def signal_handler(sig, frame):
print("Shutting down server gracefully...")
sys.exit(0)