Skip to content

Instantly share code, notes, and snippets.

@jlia0
jlia0 / agent loop
Last active October 28, 2025 01:55
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
@caolingyu
caolingyu / cursor-reset.py
Created February 7, 2025 06:55
Cursor Reset
import json
import os
import shutil
import uuid
from datetime import datetime
from pathlib import Path
import platform
def backup_file(file_path: str):
@ankanch
ankanch / chatgpt-bot-4-feishu-web-external-group.js
Created June 15, 2023 03:10
适用于飞书外部群的ChatGPT 机器人 (基于飞书网页版)
/**
* 适用于飞书外部群的ChatGPT 机器人
* 对于飞书内部群,可以直接通过开发飞书机器人实现内部群的消息监听和回复。
* 但对于飞书外部群,无法添加内部机器人程序, 只能添加非常简单的基于Webhook 的机器人 (参考:https://open.feishu.cn/document/client-docs/bot-v3/add-custom-bot)
* 机器人无法直接获得外部群的消息。
*
* 本脚本实现,监听飞书网页版外部群消息(HTML元素变化),并将群消息发送给 ChatGPT 处理。
* 使用方法:
* 1. 打开飞书网页版
* 2. 等待网页版加载完成
@kaigouthro
kaigouthro / Pine_Script_5_Mini_Reference.md
Last active September 25, 2025 15:27
A minimal reference to pine script v5

Pine Script Mini-Reference

This document provides a concise reference for Pine Script, a programming language specifically designed for trading strategies and indicators within TradingView.

Operators

Arithmetic Operators

Operator Description
@fire-eggs
fire-eggs / betterbookmarks.py
Last active May 12, 2025 13:58
Python 3 - takes the Chrome Bookmarks file, and creates a better "Export Bookmarks" HTML page.
# Massages a Chrome bookmarks file into an HTML file.
#
# Features:
# - Folders are ordered alphabetically
# - Bookmarks are ordered alphabetically (by description)
# - Bookmarks are shown first, followed by folders
# - Folders can be expanded or collapsed. Initially collapsed.
# - Folders are indented nicely
# - A button is provided to expand/collapse all folders
#
@darbyluv2code
darbyluv2code / MyLoggerConfig.java
Last active February 5, 2023 06:34
Spring Logging for Spring 5.1 - XML Configuration
package com.luv2code.springdemo;
import java.util.logging.ConsoleHandler;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.logging.SimpleFormatter;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
public class MyLoggerConfig {
@erysaj
erysaj / trading-view-chart.html
Last active May 3, 2025 11:58
Embed TradingView chart widget
<!DOCTYPE html>
<html>
<head>
<style>
html, body {
height: 100%;
width: 100%;
}
</style>
<title>Chart Demo</title>
@0xjac
0xjac / private_fork.md
Last active November 1, 2025 13:04
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git

@mrchief
mrchief / LICENSE.md
Last active May 20, 2025 13:10
Add "Open with Sublime Text 2" to Windows Explorer Context Menu (including folders)

MIT License

Copyright (c) [year] [fullname]

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 furnished to do so, subject to the following conditions: