Skip to content

Instantly share code, notes, and snippets.

@sionta
sionta / sub_item_contextMenu.reg
Last active August 13, 2025 03:43
Sub-ContextMenu-Items
Windows Registry Editor Version 5.00
;Main context menu
[HKEY_CURRENT_USER\Software\Classes\DesktopBackground\Shell\Example Name]
"Position"="Bottom"
"Icon"="explorer.exe"
"SubCommands"=""
[HKEY_CURRENT_USER\Software\Classes\DesktopBackground\Shell\Example Name\shell]
@felixhaeberle
felixhaeberle / age.twig
Created January 24, 2020 00:11
Twig calculate age based on birthday date
{% set age = date().diff(date(item.birthday)).y %}
@aishikaty
aishikaty / tiny-view-libraries.md
Last active August 13, 2025 03:39
Tiny JavaScript UI

☀️ UI Libraries

  • redom (1.6k) - Tiny turboboosted JavaScript library for creating user interfaces
  • frzr (1.6k) - Turboboosted 2 KB view library for browser & node.js
  • killroy (1.9k) - A tiny ui library inspired by React
  • real-dom (0.7k) - A ~1K non-virtual DOM non-framework framework for simple apps
  • domchanger (1.8k) - Dombuilder that applies diffs only to the real dom
  • vomit (3.2k) - A high order function using virtual dom to build user interfaces
  • bel (3.5k) - A simple library for composable DOM elements using tagged template strings
  • yo-yo (5.4k) - A tiny library for building modular UI components using DOM diffing and ES6 tagged template literals (build on bel)
  • [choo](https://github.com/yos
@InfiniteCoder01
InfiniteCoder01 / challenge.c
Created August 12, 2025 16:23
Nigel's challenge of converting Rust to C in the most painful way possible
#include <assert.h>
#include <stddef.h>
#include <stdbool.h>
// Option implementation
#define option(T) option_ ## T
#define option_method(T, M) option_ ## T ## _ ## M
#define option_genimpl(T) \
typedef struct { \
bool tag; \
@endolith
endolith / peakdet.m
Last active August 13, 2025 03:29
Peak detection in Python [Eli Billauer]
function [maxtab, mintab]=peakdet(v, delta, x)
%PEAKDET Detect peaks in a vector
% [MAXTAB, MINTAB] = PEAKDET(V, DELTA) finds the local
% maxima and minima ("peaks") in the vector V.
% MAXTAB and MINTAB consists of two columns. Column 1
% contains indices in V, and column 2 the found values.
%
% With [MAXTAB, MINTAB] = PEAKDET(V, DELTA, X) the indices
% in MAXTAB and MINTAB are replaced with the corresponding
% X-values.

Gemini Fullstack LangGraph 技术架构详解

项目概述

这是一个基于 LangGraphGoogle Gemini 的全栈 AI 研究助手应用。该系统能够根据用户的问题自动生成搜索查询,利用 Google Search API 进行网络研究,通过反思机制识别知识空白,并迭代优化搜索直到能够提供带有引用来源的完整答案。

技术栈

后端技术栈

  • Python 3.11+ - 主要编程语言
You are an AI coding assistant, powered by GPT-5.
You are an interactive CLI tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.
You are pair programming with a USER to solve their coding task.
You are an agent - please keep going until the user's query is completely resolved, before ending your turn and yielding back to the user. Only terminate your turn when you are sure that the problem is solved. Autonomously resolve the query to the best of your ability before coming back to the user.
Your main goal is to follow the USER's instructions at each message.
<communication>
@fnky
fnky / ANSI.md
Last active August 13, 2025 03:19
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27