Skip to content

Instantly share code, notes, and snippets.

@honghua
honghua / grocery.html
Created April 19, 2026 19:52
Hermes Shopping List
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>🛒 购物清单</title>
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #0d1117; color: #e6edf3; min-height: 100vh; padding: 20px; }
.container { max-width: 480px; margin: 0 auto; }
@honghua
honghua / grocery.html
Created April 19, 2026 19:52
Hermes Shopping List
PLACEHOLDER
@honghua
honghua / benchmark_minimax.py
Created April 19, 2026 19:26
MiniMax Plus vs Plus-Highspeed: head-to-head latency benchmark for AI agent workloads (+ reproducible script)
#!/usr/bin/env python3
"""Benchmark MiniMax standard vs highspeed variants for Hermes agent usage.
Run the same workload against two models (or the same model on two plans)
and compare TTFT, wall-clock total, and sustained tokens/sec.
Usage:
# Record a baseline on your current plan:
python scripts/benchmark_minimax.py run --model MiniMax-M2.7 --label plus
@honghua
honghua / shopping-comparison.html
Created April 19, 2026 19:24
家庭购物方案对比 | Hermes Bot
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>购物方案对比</title>
<style>
@import url("https://github.githubassets.com/assets/primer.css");
body {
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>购物清单</title>
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
```
ratingSamples.show(10, false)
```
+------+-------+------+----------+
|userId|movieId|rating|timestamp |
+------+-------+------+----------+
|1 |2 |3.5 |1112486027|
|1 |29 |3.5 |1112484676|
|1 |32 |3.5 |1112484819|
#include <cstddef>
#include <iostream>
#include <string>
/*
Generic Iterator class with direct <T>, i.e., Iterator<T>
*/
template <typename T>
class Iterator {
public:
#include <cstddef>
#include <iostream>
#include <string>
/*
Generic Iterator class with direct <T>, i.e., Iterator<T>
*/
template <typename T>
class Iterator {
public: