- 帖子: https://x.com/tianyi/status/2083519855203078320 (Tianyi Cui, 2026-08-01 19:46 +08)
- 数据采集时间: 2026-08-02 08:00–08:30 UTC(发帖后约 20 小时)
- 采集方法: X 搜索
conversation_id:2083519855203078320全量滚动(最新→最旧),去重后共 425 条回复,时间覆盖 2026-08-01 11:49 UTC(发帖后 3 分钟)至采集时点,完整覆盖整个对话。 - 口径说明: 帖子页面显示 697 条回复,搜索索引实际返回 425 条(含嵌套回复;部分回复可能未入搜索索引或被删除)。本报告基于可公开检索到的全部内容。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import regex | |
| from typing import List | |
| # Define constants | |
| MAX_HEADING_LENGTH = 7 | |
| MAX_HEADING_CONTENT_LENGTH = 200 | |
| MAX_HEADING_UNDERLINE_LENGTH = 200 | |
| MAX_HTML_HEADING_ATTRIBUTES_LENGTH = 100 | |
| MAX_LIST_ITEM_LENGTH = 200 | |
| MAX_NESTED_LIST_ITEMS = 6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import regex as re | |
| import requests | |
| MAX_HEADING_LENGTH = 7 | |
| MAX_HEADING_CONTENT_LENGTH = 200 | |
| MAX_HEADING_UNDERLINE_LENGTH = 200 | |
| MAX_HTML_HEADING_ATTRIBUTES_LENGTH = 100 | |
| MAX_LIST_ITEM_LENGTH = 200 | |
| MAX_NESTED_LIST_ITEMS = 6 | |
| MAX_LIST_INDENT_SPACES = 7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <artifacts_info> | |
| The assistant can create and reference artifacts during conversations. Artifacts are for substantial, self-contained content that users might modify or reuse, displayed in a separate UI window for clarity. | |
| # Good artifacts are... | |
| - Substantial content (>15 lines) | |
| - Content that the user is likely to modify, iterate on, or take ownership of | |
| - Self-contained, complex content that can be understood on its own, without context from the conversation | |
| - Content intended for eventual use outside the conversation (e.g., reports, emails, presentations) | |
| - Content likely to be referenced or reused multiple times |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // From https://gist.github.com/stevendesu/2d52f7b5e1f1184af3b667c0b5e054b8 | |
| // To ensure cross-browser support even without a proper SubtleCrypto | |
| // impelmentation (or without access to the impelmentation, as is the case with | |
| // Chrome loaded over HTTP instead of HTTPS), this library can create SHA-256 | |
| // HMAC signatures using nothing but raw JavaScript | |
| /* eslint-disable no-magic-numbers, id-length, no-param-reassign, new-cap */ | |
| // By giving internal functions names that we can mangle, future calls to |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| openapi: 3.0.0 | |
| info: | |
| title: Notion API | |
| description: API for interacting with Notion resources such as pages and databases. | |
| version: 1.0.0 | |
| servers: | |
| - url: https://api.notion.com/v1 | |
| description: Main API server | |
| paths: | |
| /pages/{page_id}: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Credit Ryan Carniato https://frontendmasters.com/courses/reactivity-solidjs/ | |
| let context = []; | |
| export function untrack(fn) { | |
| const prevContext = context; | |
| context = []; | |
| const res = fn(); | |
| context = prevContext; | |
| return res; |
Goal: find a Linux alternative to FancyZones for Windows
| Name | Recommended | Type | Supports main colum | Supports layouts | Multiple windows in same tile | Windows can span multiple zones | Notes |
|---|---|---|---|---|---|---|---|
| Tiling Shell | 👍👍👍 | Gnome extension | yes | yes | yes | yes | Explicitly inspired by Windows tiling, works great out of the box |
| gSnap | 👍👍 | Gnome extension | yes | yes | yes | yes | Can be configured almost just like FancyZones; in the settings:
|
| gTile | Gnome extension | no? | |||||
| Tiling Assistant ([Now bundled with Ubuntu](https://www.omgubuntu.co.uk/2023/06/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import openai | |
| import pinecone | |
| from sentence_transformers import SentenceTransformer | |
| class GPTConversationManager: | |
| def __init__(self, api_key, pinecone_api_key, index_name): | |
| self.api_key = api_key | |
| openai.api_key = self.api_key | |
| self.conversation_history = [] | |
| self.pinecone_api_key = pinecone_api_key |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| MIT License | |
| Copyright (c) 2023 David Buchanan | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is |
NewerOlder