Skip to content

Instantly share code, notes, and snippets.

View sorrycc's full-sized avatar
🌻
Working on Neovate Code

chencheng (云谦) sorrycc

🌻
Working on Neovate Code
View GitHub Profile
@sorrycc
sorrycc / linuxdo.js
Created January 13, 2026 03:21
Linux.do 自动浏览 + 点赞 + 实时统计面板
// ==UserScript==
// @name linuxdo保活优化版(高性能版)
// @namespace http://tampermonkey.net/
// @version 0.6.0
// @description Linux.do 自动浏览 + 点赞 + 实时统计面板 + 面板控制启动/停止/暂停(性能优化版)
// @author levi & ChatGPT
// @match https://linux.do/*
// @grant GM_setValue
// @grant GM_getValue
// @license MIT
@sorrycc
sorrycc / Flova.ai Tools.md
Created January 7, 2026 05:56
Flova.ai Tools - AI视频创作能力清单
date created date modified
2026-01-07
2026-01-07

请列出你对最终用户公开、且允许用户触发的能力/动作清单(不要包含内部函数名、实现细节)。对每项能力给出:用途、我需要提供的输入字段、输出形式、常见失败原因/限制、一个示例请求。


1) 创建项目与创意概述

# TypeScript Project Setup Prompt
Set up a modern TypeScript project with the following structure and configurations:
## Project Requirements
1. **Package Manager**: pnpm@10.24.0
2. **Runtime Management**: Volta for Node.js version pinning
3. **Build Tool**: Bun for fast bundling
4. **Code Quality**: Biome for formatting and linting
# Inline Name Editing on /me Page
**Date:** 2025-11-11
**Feature:** Support user to update name inline on the /me page
---
## Requirements
- **Interaction Pattern:** Always editable input field with auto-save on blur
@sorrycc
sorrycc / gist:69051af0a017148f7a5750c1b54aecf8
Created October 16, 2025 02:39
plan generated by qwest
# Add Slash Commands: /spec and /plan
## Overview
This design document outlines the addition of two new built-in slash commands to Takumi's command system: `/spec` and `/plan`. These commands enhance the AI-assisted development workflow by providing structured approaches to idea refinement and implementation planning.
**Purpose:**
- `/spec`: Interactive brainstorming command that helps transform rough ideas into fully-formed design specifications through guided questioning
- `/plan`: Planning command that generates comprehensive, bite-sized implementation plans from specifications
function getTerminal() {
if (process.env.CURSOR_TRACE_ID) return 'cursor';
if (process.env.VSCODE_GIT_ASKPASS_MAIN?.includes('/.cursor-server/bin/'))
return 'cursor';
if (process.env.VSCODE_GIT_ASKPASS_MAIN?.includes('/.windsurf-server/bin/'))
return 'windsurf';
let A = process.env.__CFBundleIdentifier?.toLowerCase();
if (A?.includes('vscodium')) return 'codium';
if (A?.includes('windsurf')) return 'windsurf';
if (A?.includes('pycharm')) return 'pycharm';
export function createRuntime(makoModules, entryModuleId) {
const modulesRegistry = {};
function requireModule(moduleId) {
if (modulesRegistry[moduleId] !== undefined) {
return modulesRegistry[moduleId].exports;
}
const module = {
exports: {},
// ==UserScript==
// @name YuQue x 霞鹜文楷
// @namespace http://sorrycc.com/
// @version 0.1
// @description 使用「霞鹜文楷」字体
// @author sorrycc@gmail.com
// @match https://yuque.antfin.com/*
// @match https://*.yuque.com/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none

任务二,

1、抓取 http://www.paulgraham.com/read.html 的内容
2、从中提取「标题」和「链接」,存成对象或者数组,保存到本地 articles.json
3、抓取每个「链接」的内容,并保存到 articles 目录下,比如 articles/read.html
4、分析其中的正文部分,保存到 pure-articles 目录下,比如 pure-articles/read.html
5、后面会做翻译(这个先不做)

一些常见问题(FAQ),

function getContainer(root) {
root ||= document.body;
if (!root.innerText) return null;
const totalWords = root.innerText.match(/\S+/g).length;
let ps = root.querySelectorAll('p');
if (!ps.length) ps = root.querySelectorAll('div');
if (!ps.length) return null;