Skip to content

Instantly share code, notes, and snippets.

View lloydzhou's full-sized avatar
:octocat:
Focusing

Lloyd Zhou lloydzhou

:octocat:
Focusing
View GitHub Profile
@lloydzhou
lloydzhou / README.md
Last active September 25, 2026 14:24
550S — The Wandering Earth has 550W. Your terminal gets 550 lines of Shell. Powered by agent.sh.

550S

Shell. Single-file. Symlink.

The Wandering Earth has 550W. Your terminal gets 550S.

Not here to move the Earth. Just here to run your tools.

550S is the codename for agent.sh: an AI agent in 550 lines of Bash + awk. The model lives behind an API. The tools live in a directory.

@zensh
zensh / applicants_report_20260802.md
Created August 2, 2026 08:54
DeepSeek Harness 内测申请汇总分析报告 (2026-08-02) — Tianyi Cui X 帖子 conversation 2083519855203078320

DeepSeek Harness 内测申请汇总与分析报告

  • 帖子: 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 条(含嵌套回复;部分回复可能未入搜索索引或被删除)。本报告基于可公开检索到的全部内容。

一、总体统计

@MeMartijn
MeMartijn / jina_text_segmenter.py
Created October 29, 2024 15:01
Jina AI's Segmenter ported to Python
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
@LukasKriesch
LukasKriesch / gist:e75a0132e93ca989f8870c4f95be734b
Created August 26, 2024 09:12
Python translation Jina AI chunking regex
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
@dedlim
dedlim / claude_3.5_sonnet_artifacts.xml
Last active March 13, 2026 10:05
Claude 3.5 Sonnet, Full Artifacts System Prompt
<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
@guillermodlpa
guillermodlpa / HMAC.js
Last active May 22, 2025 12:39 — forked from stevendesu/HMAC.js
A simple, open-source, HMAC-SHA256 implementation in pure TypeScript. Designed for efficient minification.
// 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
@vested-sigil
vested-sigil / notion.yaml
Created January 26, 2024 00:07
swagger spec for notion.so for custom GPTS
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}:
@1Marc
1Marc / reactive.js
Last active March 1, 2026 14:42
Vanilla Reactive System
// 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;
@bmaupin
bmaupin / tiling-extensions-for-gnome.md
Last active October 16, 2026 09:19
Tiling extensions for Gnome

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:
  • disable Show tabs
  • enable Hold CTRL to snap windows
gTile Gnome extension no?
Tiling Assistant ([Now bundled with Ubuntu](https://www.omgubuntu.co.uk/2023/06/
@redcpp
redcpp / GPTConversationManager.py
Created April 9, 2023 07:13
5 GPT context-management strategies (summarization, semantic retrieval, adaptive, window) with Pinecone embeddings + SentenceTransformer
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