Skip to content

Instantly share code, notes, and snippets.

View 14790897's full-sized avatar
🎯
Focusing

liuweiqing 14790897

🎯
Focusing
View GitHub Profile
@14790897
14790897 / cfworkers c号的token轮询 .js
Last active February 26, 2024 10:56
cfworkers c号的token轮询
addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request))
})
addEventListener('scheduled', event => {
event.waitUntil(doSomeTaskOnASchedule());
});
async function doSomeTaskOnASchedule() {
await handleChecklist();
// ==UserScript==
// @name Card Input
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.zuora.com/apps/PublicHostedPageLite.do**
// @grant none
// ==/UserScript==
@14790897
14790897 / 提取ChatGPT官方json数据中的完整对话.py
Created December 19, 2023 12:00
提取ChatGPT官方json数据中的完整对话
import json
def find_bottom_most_node(conversation_data):
"""
Finds the bottom-most node in the conversation, which is the node without any children.
:param conversation_data: The conversation data in a nested dictionary format.
:return: The ID of the bottom-most node, or None if not found.
"""