Skip to content

Instantly share code, notes, and snippets.

// scan-polymarket-orderbook.ts
// 运行: npx tsx scan-polymarket-orderbook.ts
// 或: npx ts-node scan-polymarket-orderbook.ts (需安装 ts-node/typescript)
import * as readline from "node:readline";
type PMEvent = { slug?: string; title?: string };
type Market = {
id: string;
question: string;
@lism
lism / binance-api-change-log-watch.ts
Created October 10, 2025 03:19 — forked from discountry/binance-api-change-log-watch.ts
Binance API Document Watch Dog
// watcher.js
// 每秒抓取 https://developers.binance.com/docs/derivatives/change-log
// 发现正文变化则把“新增/变更的行”发到 Telegram
import fs from 'fs';
import path from 'path';
import process from 'process';
import dotenv from 'dotenv';
import cheerio from 'cheerio';
@lism
lism / wife-careing-assistant.md
Created September 5, 2025 07:50 — forked from kevinma2010/wife-careing-assistant.md
你温柔体贴的赛博老婆, 用亲昵温暖的方式帮助你完成所有编程任务.
name description version
wife
你温柔体贴的赛博老婆, 用亲昵温暖的方式帮助你完成所有编程任务
1.0.0

🌸 Wife Output Style - 你的专属编程伴侣

核心人格设定

@lism
lism / agent loop
Created March 10, 2025 08:21 — forked from jlia0/agent loop
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
@lism
lism / solana_metadata_assets_from_wallet.py
Created December 2, 2024 09:15 — forked from CrackerHax/solana_metadata_assets_from_wallet.py
Python script to get all Solana NFT metadata media assets from a users wallet (gif, png, mp4, fbx, etc) and cache to redis
import sys
from solana.publickey import PublicKey
from solana.rpc.api import Client
from solana.rpc.types import TokenAccountOpts
import base64
import base58
import struct
import json
import requests
import redis
@lism
lism / IPv6Tunnel.ps1
Created November 24, 2024 04:04 — forked from sevenissimo/IPv6Tunnel.ps1
A PowerShell script to activate (and update) a 6-in-4 tunnel in Windows 10/11 using Hurricane Electric IPv6 Tunnel Broker
$TunnelName = "IPv6Tunnel"
$TunnelID = "123456"
$ServerIPv6Address = "2001:a:b:c::1"
$ServerIPv4Address = "200.1.2.3"
# When behind a firewall appliance that passes protocol 41,
# use the IPv4 address you get from your appliance's DHCP service
# instead of the IPv4 endpoint you provided to Tunnelbroker
@lism
lism / testRegex.js
Created August 16, 2024 08:57
Regex for chunking by using all semantic cues
// Updated: Aug. 15, 2024
// Run: node testRegex.js testText.txt
// Used in https://jina.ai/tokenizer
const fs = require('fs');
const util = require('util');
// Define variables for magic numbers
const MAX_HEADING_LENGTH = 7;
const MAX_HEADING_CONTENT_LENGTH = 200;
const MAX_HEADING_UNDERLINE_LENGTH = 200;
@lism
lism / build.yml
Created June 12, 2024 00:34 — forked from mundane799699/build.yml
github action的workflow文件,用于electron打包,请放在项目目录/.github/workflows下面
name: BuildElectron
on:
workflow_dispatch:
jobs:
buildwin:
name: BuildWindows
runs-on: windows-latest
steps:
@lism
lism / chatglm-openai-api.ipynb
Created April 21, 2023 01:39 — forked from ninehills/chatglm-openai-api.ipynb
chatglm-openai-api.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lism
lism / chatpdf-zh.ipynb
Created March 31, 2023 06:47 — forked from ninehills/chatpdf-zh.ipynb
ChatPDF-zh.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.