X3

RedSky

导航

2026年4月15日 #

Chrome启用CDP(chrome-devtools-protocol)进行远程操控

摘要: 首先指定一个端口号让Chrome启动调试端口,(比如9222). 然后控制端请求链接获取webSocketUrl: get->http://localhost:9222/json/version response-> { "Browser": "Chrome/146.0.7680.165", "Pr 阅读全文

posted @ 2026-04-15 17:27 HotSky 阅读(148) 评论(0) 推荐(0)

2026年1月27日 #

WPF 让ScrollViewer支持按住鼠标中键拖拽滚动内容

摘要: public class ScrollViewerMouseMiddleButtonDragToScrollBehavior : Behavior<UIElement> { ScrollViewer target; private Point? _startPoint; protected over 阅读全文

posted @ 2026-01-27 14:57 HotSky 阅读(9) 评论(0) 推荐(0)

WPF 让ScrollViewer支持鼠标中键滚动缩放内容

摘要: public class ScrollViewerMouseWheelScaleBehavior : Behavior<ScrollViewer> { public static readonly DependencyProperty MaxScaleProperty = DependencyPro 阅读全文

posted @ 2026-01-27 14:54 HotSky 阅读(7) 评论(0) 推荐(0)

2025年8月5日 #

Nodejs使用

摘要: 安装yarn: npm install -g yarn安装ts: npm install -g typescript安装ts-node: npm install -g ts-node 安装项目当前所有依赖: yarn install 启动项目: ts-node src/index.ts 阅读全文

posted @ 2025-08-05 15:45 HotSky 阅读(31) 评论(0) 推荐(0)

2025年8月1日 #

nodejs中写sql需要用in时的写法

摘要: let data = [1,2,3]; let sql = `selec * from table1 where type in (${data.map(m=>'?').join(',')})`; let params = [...data]; await conn.execute(sql, par 阅读全文

posted @ 2025-08-01 16:00 HotSky 阅读(5) 评论(0) 推荐(0)

2025年5月9日 #

C#城市最短路径

摘要: 123 public class City { public int Id { get; set; } public string Name { get; set; } public List<City> Cities { get; set; } = new List<City>(); public 阅读全文

posted @ 2025-05-09 17:58 HotSky 阅读(33) 评论(0) 推荐(0)

2025年4月2日 #

C#Animation

摘要: Animation using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Security.Cryptography; using Syste 阅读全文

posted @ 2025-04-02 18:04 HotSky 阅读(42) 评论(0) 推荐(0)

2025年2月20日 #

Sqlite

摘要: #JSON操作: insert into tag (data) values ('{"id":2, "character":[{"id": 2, "name":"demo","task":[{"id":3,complete:false}]}]}'); select json_extract(b.va 阅读全文

posted @ 2025-02-20 17:34 HotSky 阅读(20) 评论(0) 推荐(0)

2025年1月17日 #

PDF附录A: 内容流操作码

摘要: 操作码 Postscript对照 描述 Discription b closepath,fill,stroke 使用非零缠绕数规则闭合、填充和笔划路径 B fill,stroke 使用非零缠绕数规则填充和笔划路径 b* closepath,eofill,stroke 使用奇偶规则关闭、填充和笔划路径 阅读全文

posted @ 2025-01-17 09:47 HotSky 阅读(92) 评论(0) 推荐(0)

2024年11月13日 #

WPF FPS类

摘要: public class FPSBase { public static void Run() { CompositionTarget.Rendering += CompositionTarget_Rendering; } public static TimeSpan RunTime { get; 阅读全文

posted @ 2024-11-13 10:39 HotSky 阅读(32) 评论(0) 推荐(0)