Skip to content

Instantly share code, notes, and snippets.

View zgs225's full-sized avatar
😀
Working

Yuez zgs225

😀
Working
View GitHub Profile
@zgs225
zgs225 / glm-coding-plan-rush-helper.user.js
Created June 4, 2026 01:39 — forked from LessUp/glm-coding-plan-rush-helper.user.js
⚡ GLM Coding Rush — 智谱编程助手一键抢购脚本 | Auto-Purchase Userscript for GLM Coding | 自动解锁售罄 · 高速重试 · 定时触发 · 支付保护 · 中英双语面板 | Auto-unlock sold-out · High-speed retry · Scheduled trigger · Payment guard · Bilingual panel | Tampermonkey/Violentmonkey | 点击 Raw 安装 · Click Raw to install
// ==UserScript==
// @name GLM Coding Rush - 智谱编程助手抢购脚本
// @namespace https://gist.github.com/LessUp
// @version 1.1.0
// @description 智谱 GLM Coding 一键抢购脚本 — 自动解锁售罄按钮 / 高速重试引擎 / bizId 双重校验 / 错误弹窗自动恢复 / 支付弹窗保护 / 秒级定时触发 / 可拖拽浮动面板
// @author LessUp
// @match *://www.bigmodel.cn/*
// @match https://bigmodel.cn/glm-coding*
// @run-at document-start
// @grant none
@zgs225
zgs225 / mp42gif.sh
Created October 10, 2024 05:47
将 mp4 视频转成 gif 图片。A script convert mp4 to gif via ffmpeg.
#!/bin/bash
# 默认参数
fps=10
width=-1
output=""
# 打印使用说明
usage() {
local exe=$(basename $0)
@zgs225
zgs225 / mp3_hant2hans.sh
Last active April 26, 2023 07:16
将 mp3 文件中的繁体中文信息转换成简体中文信息
#!/bin/bash
# 将 mp3 文件中的繁体字转换为简体字
# 依赖:opencc mid3v2
# 用法:hant2hans.sh [-d dir] [-f file]
set -e
function get_by_id() {
mid3v2 -l "$1" | grep "$2" | cut -d= -f2 | sed 's/^[ \t]*//'
@zgs225
zgs225 / reversi.c
Created December 28, 2016 15:55
Interesting
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#define SIZE 6
const char comp_c = '@';
const char player_c = 'O';