a132811's repos on GitHub
JavaScript · 19 人关注
ahuigo.github.io
Ahuigo's notes
Go · 14 人关注
gofnext
🛠️ Golang extended function like @cache decorator.
PHP · 13 人关注
des
des source code for js,perl.
Python · 2 人关注
ahui-aiohttp-server
Aiohttp server for static files and python file(php-like server)
JavaScript · 2 人关注
chrome-ext
my chrome extension for development
Go · 1 人关注
arun
live reload run command
TypeScript · 1 人关注
auto-devops
Go · 0 人关注
2wayssl
A two-way ssl generator template
Python · 0 人关注
aiohttp
Async http client/server framework (asyncio)
0 人关注
akshare
AkShare is an elegant and simple financial data interface library for Python, built for human beings! 开源财经数据接口库
CSS · 0 人关注
aleph.js.antd
0 人关注
alfred-workflows
Save time, Improve life.🚀 ☕️
0 人关注
ama
Ask me anything!
TypeScript · 0 人关注
astral
A high-level puppeteer/playwright-like library for Deno
Shell · 0 人关注
auto-tool
0 人关注
avlmini
AVL implementation which is as fast/compact as linux's rbtree
0 人关注
boltcss
Mostly-reasonable HTML Styles
JavaScript · 0 人关注
bookAdmin
Egg Node Mogoose
0 人关注
build-your-ai-coding-assistant
有手就会 《构建你自己的 AI 辅助编码助手》 —— 介绍如何 DIY 一个端到端(从 IDE 插件、模型选型、数据集构建到模型微调)的 AI 辅助编程工具,类似于 GitHub Copilot、JetBrains AI Assistant、AutoDev 等。
JavaScript · 0 人关注
busboy
A streaming parser for HTML form data for node.js
0 人关注
c
C · 0 人关注
c-lib
0 人关注
cadence
Cadence is a distributed, scalable, durable, and highly available orchestration engine to execute asynchronous long-running business logic in a scalable and resilient way.
0 人关注
cadence-client
Framework for authoring workflows and activities running on top of the Cadence orchestration engine.
Go · 0 人关注
cadence-v11-bad-case
0 人关注
chatgpt-mirror
A mirror of ChatGPT based on the gpt-3.5-turbo model.
0 人关注
ChatGPT-Translator
使用ChatGPT API的翻譯文字插件
JavaScript · 0 人关注
chrome-ext-fiddle
0 人关注
chrome-HeaderEditor
Manage browser's requests, include modify the request headers and response headers, redirect requests, cancel requests
Python · 0 人关注
chrome-screenshot
0 人关注
chrome-xswitch
A Chrome Extension for redirecting/forwarding request urls
0 人关注
cline
Autonomous coding agent right in your IDE, capable of creating/editing files, executing commands, using the browser, and more with your permission every step of the way.
0 人关注
clipboard2markdown
Convert rich-text on your clipbaord to markdown
0 人关注
copier
Copier for golang, copy value from struct to struct and more
JavaScript · 0 人关注
cryptocurrency
0 人关注
deno-Bundler
A Bundler with the web in mind.
TypeScript · 0 人关注
deno-debug-example
TypeScript · 0 人关注
deno-fetchx
Extended fetch
0 人关注
deno-postgres
PostgreSQL driver for Deno
TypeScript · 0 人关注
deno-puppeteer
A port of puppeteer running on Deno
TypeScript · 0 人关注
deno-vite-react-ts
Vite + Deno + React + TypeScript + Tailwind
0 人关注
deno_ast
Source text parsing, lexing, and AST related functionality for Deno
0 人关注
deno_tools
a collection of tools and utils for deno
Makefile · 0 人关注
dockerfile
JavaScript · 0 人关注
doctools
doctools for eggjs
0 人关注
easyquotation
实时获取新浪 / 腾讯 的免费股票行情 / 集思路的分级基金行情
Python · 0 人关注
easytrader
提供券银河客户端/广发/湘财证券/雪球的基金、股票自动程序化交易以及自动打新,支持跟踪 joinquant /ricequant 模拟交易 和 实盘雪球组合, 量化交易组件
JavaScript · 0 人关注
echoesworks
Next-Generation Tech Blog/Presentation/Slider Framework
JavaScript · 0 人关注
egg-app
JavaScript · 0 人关注
egg-static
static server plugin for egg
Python · 0 人关注
eng-dict
langdao dict for mac dictionary app
0 人关注
esm.sh
A fast, global content delivery network for ES Modules.
Python · 0 人关注
fileset
Calculate line set of two files
0 人关注
flowy
The minimal javascript library to create flowcharts ✨
TypeScript · 0 人关注
frame-react-vite-demo
TypeScript · 0 人关注
fresh
The next-gen web framework.
TypeScript · 0 人关注
fresh-demo
Fresh demo
TypeScript · 0 人关注
fresh-mdnotes
0 人关注
fx
A dependency injection based application framework for Go.
Go · 0 人关注
gin
Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
Go · 0 人关注
ginapp
Simple http server for development based on gonic
Go · 0 人关注
ginbro
Converting a MySQL database'schema to a RESTful golang APIs app in the fastest way
Go · 0 人关注
ginpprof
A wrapper for golang web framework gin to use net/http/pprof easily.
0 人关注
glider
glider is a forward proxy with multiple protocols support, and also a dns/dhcp server with ipset management features(like dnsmasq).
Go · 0 人关注
glogger
0 人关注
go
The Go programming language
Go · 0 人关注
go-funk
A modern Go utility library which provides helpers (map, find, contains, filter, ...)
0 人关注
go-generics
Go · 0 人关注
go-hello
go hello module
0 人关注
go-mitmproxy
mitmproxy implemented with golang. 用 Golang 实现的中间人攻击(Man-in-the-middle),解析、监测、篡改 HTTP/HTTPS 流量。
0 人关注
go-osstat
OS system statistics library for Go
0 人关注
go-sqlmock
Sql mock driver for golang to test database interactions
0 人关注
go-timewheel
golang timewheel similar to glang std timer
0 人关注
go-tools
Staticcheck - The advanced Go linter
0 人关注
go-torch
Stochastic flame graph profiler for Go programs
Go · 0 人关注
go-viper-crypt
Store and retrieve encrypted configs from etcd or consul
0 人关注
gocache
☔️ A complete Go cache library that brings you multiple ways of managing your caches
Go · 0 人关注
gofnext_pg
gofnext cache for postgres
0 人关注
gofreecache
A cache library for Go with zero GC overhead.
0 人关注
gogctuner
auto adjust your GOGC value
Go · 0 人关注
gohttptool
Go http tool
Go · 0 人关注
goitest
Golang integration test suit
Go · 0 人关注
golib
0 人关注
gonic-examples
A repository to host examples and tutorials for Gin.
Stata · 0 人关注
google-hosts
Google hosts
Go · 0 人关注
goos-tools
golang os utils
Go · 0 人关注
gorm
GORM V1, V2 moved to https://github.com/go-gorm/gorm
0 人关注
gormt
database to golang struct
0 人关注
go_reuseport
Brings SO_REUSEPORT into your Go server
0 人关注
graftcp
A flexible tool for redirecting a given program's TCP traffic to SOCKS5 or HTTP proxy.
0 人关注
haoel.github.io
CSS · 0 人关注
hexo-theme-next
Elegant and powerful theme for Hexo.
JavaScript · 0 人关注
hicharts-map
Ruby · 0 人关注
homebrew-ahui
Ahui's brew tap repo.
Ruby · 0 人关注
homebrew-v2ray
Homebrew tap for v2ray core.
0 人关注
httpdump
Capture and parse http traffics
Go · 0 人关注
huobi_Golang
Go SDK for Huobi Spot API
0 人关注
imutils
A series of convenience functions to make basic image processing operations such as translation, rotation, resizing, skeletonization, and displaying Matplotlib images easier with OpenCV and Python.
Ruby · 0 人关注
install
:inbox_tray: Homebrew (un)installer
Java · 0 人关注
java-lib
This is my java library.
a132811

a132811

V2EX 第 55470 号会员,加入于 2014-02-08 11:15:21 +08:00
利用泛型实现的 golang 缓存装饰器
Go 编程语言  •  a132811  •  2023 年 12 月 13 日  •  最后回复来自 a132811
6
golang 泛型能否支持可变参数
Go 编程语言  •  a132811  •  2023 年 7 月 31 日  •  最后回复来自 Anubisks
4
哪里能获得过去 50 年各城市、地区的夏天高温度数据?
问与答  •  a132811  •  2023 年 7 月 4 日  •  最后回复来自 googlefans
6
ts 有办法隐式修改 class constructor 的类型吗?
TypeScript  •  a132811  •  2023 年 6 月 19 日  •  最后回复来自 chnwillliu
2
ts 如何根据可选参数返回不同的泛型成员,有简单的写法吗?
TypeScript  •  a132811  •  2022 年 9 月 15 日  •  最后回复来自 a132811
3
Vue3 下有什么 umijs 的替代品推荐吗?
Vue.js  •  a132811  •  2022 年 8 月 1 日  •  最后回复来自 a132811
13
感觉 uber/fx 并不比 getInstance 工厂好用
Go 编程语言  •  a132811  •  2022 年 8 月 9 日  •  最后回复来自 a132811
20
a132811 最近回复了
@zcf0508 我以前的做法,本地开发时直接用一键命令行的正向代理:证书、域名都本地生成、不侵入服务端  https://github.com/ahuigo/selfhttps
我试一下
像 deepwiki ,不过缺乏最重要的 AI 问答
提个复现 issue 吧。
我之前遇到另外的问题: https://github.com/microsoft/vscode/issues?q=is%3Aissue%20editor.editContext
2025 年 10 月 24 日
回复了 fingerxie 创建的主题 程序员 智谱、claudecode、codex、qwen,gemini cli 对比
claude code 不太稳定,bug 有点多。
最近换成了 qwen-code + 公司内 LiteLLM hub 提供的各种模型,主要还是用的 Claude
脚本执行器,运行完就释放,不需要实现 gc 。

这在 isolate worker/playground 场景下执行 js/python/golang 都很有用,包括执行流程编排的其它语言的表达式。

完成度比较高的 js interpreter 是 https://github.com/boa-dev/boa
2025 年 4 月 10 日
回复了 wheelg 创建的主题 奇思妙想 想要一个这样的 Magic 浏览器
1. chrome 启动时加--disable-web-security 可突破跨域限制:
mac 下可以启动隔离的 chrome:
open -na "Google Chrome" --args --disable-web-security --user-data-dir="/tmp/chrome_dev_session"

https://stackoverflow.com/questions/3102819/disable-same-origin-policy-in-chrome

2. 禁用 cors 限制的话,会遇到许多问题
- 用户信息有潜在的安全风险
- 网站服务商会受很大的影响:应对来自 c 端的 ai 爬虫就已经很头大了,放开限制的话,随便一个 web 网站都可能主动利用 js 或被注入 xss 对别的网站发起各种分布式攻击(客户端也有这个风险,但是门槛更高一点)


安全、方便、功能、开发体验之间存在许多矛盾的: pwa 相比客户端应用,牺牲了一些功能,得到了安全。

真要给 pwa 搞一个专门的浏览器的话,可能要禁止 cors 带 cookie ,禁止 xss 执行等,完全模仿客户端的行为.... 这可能会影响现有一些网站的执行。
2025 年 3 月 27 日
回复了 jimmy2024 创建的主题 推广 [抽奖] 白给数量 15 名,白给虚拟 visa 卡,先到先得!
支持
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   882 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 34ms · UTC 19:30 · PVG 03:30 · LAX 11:30 · JFK 14:30
♥ Do have faith in what you're doing.