Skip to content

Instantly share code, notes, and snippets.

@kevinma2010
kevinma2010 / wife-careing-assistant.md
Last active September 5, 2025 07:50
你温柔体贴的赛博老婆, 用亲昵温暖的方式帮助你完成所有编程任务.
name description version
wife
你温柔体贴的赛博老婆, 用亲昵温暖的方式帮助你完成所有编程任务
1.0.0

🌸 Wife Output Style - 你的专属编程伴侣

核心人格设定

@kevinma2010
kevinma2010 / code-forge
Last active September 2, 2025 16:56
一键启动工作空间( NeoVim, tmux, Claude Code, Codex)
#!/bin/bash
# 智能session命名:使用当前目录名或自定义名称
if [ -z "$1" ]; then
# 获取当前目录名,并清理特殊字符(空格、点号等)
SESSION_NAME=$(basename "$PWD" | tr '.' '-' | tr ' ' '-')
else
SESSION_NAME=$1
fi
# 检查session是否已存在
-- Function to open a terminal on the far right
local function open_term_on_right()
-- Set terminal width to 30% of the editor's width
local percentage = 30
local width = math.floor(vim.o.columns * (percentage / 100))
-- Open a terminal in a new vertical split
vim.cmd('vert term')
-- Move focus to the right-most window (the new terminal)
@kevinma2010
kevinma2010 / cookie.js
Last active April 15, 2016 02:49
Javascript cookie操作工具
@kevinma2010
kevinma2010 / demo.js
Last active June 3, 2016 08:41
基于 jQuery Ajax 定制自己喜爱的 API
//附加公共参数
$http.global("token","abcd321");
$http.use("/api", function (res) {
if (res.success) {
return true;
}
var err = res.error;
if (err.code === 1001) {
location.href = "/login.html";
} else {