Skip to content

Instantly share code, notes, and snippets.

View LeslieLeung's full-sized avatar

Leslie Leung LeslieLeung

View GitHub Profile
curl -G "https://open.bigmodel.cn/api/monitor/usage/model-usage" \
--data-urlencode "startTime=2026-02-23 14:00:00" \
--data-urlencode "endTime=2026-02-24 14:59:59" \
-H "Authorization: <token>" \
-H "Accept-Language: en-US,en" \
-H "Content-Type: application/json"
curl "https://open.bigmodel.cn/api/monitor/usage/quota/limit" \
-H "Authorization: <token>" \
-H "Accept-Language: en-US,en" \
@LeslieLeung
LeslieLeung / claude.zsh
Last active February 28, 2026 06:04
A sleek script to switch between Claude Code providers.
function claude() {
# 默认渠道配置
local default_provider=""
# 定义不同服务的配置
local base_url=""
local auth_token=""
local api_key=""
local model=""
local small_fast_model=""
@LeslieLeung
LeslieLeung / settings.json
Created April 17, 2024 03:10
My vscode theme setup
{
"apc.electron": {
"backgroundColor": "#00000000",
"titleBarStyle": "hidden",
"vibrancy": "sidebar",
"visualEffectState": "followWindow",
"trafficLightPosition": {
"x": 9,
"y": 9
}
@LeslieLeung
LeslieLeung / excel.go
Created March 7, 2024 08:00
A Excel wrapper for go
package excel
import (
"errors"
"github.com/xuri/excelize/v2"
"reflect"
)
type Row []any