X3

RedSky

导航

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 阅读(8) 评论(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 阅读(3) 评论(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 阅读(14) 评论(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 阅读(22) 评论(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 阅读(5) 评论(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 阅读(51) 评论(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 阅读(18) 评论(0) 推荐(0)

2024年10月21日 #

生命模拟

摘要: 界面: <DockPanel Background="#EEEEEE"> <WrapPanel DockPanel.Dock="Top"> <Border Background="Green" Width="20" Height="20" VerticalAlignment="Center"/> < 阅读全文

posted @ 2024-10-21 17:32 HotSky 阅读(6) 评论(0) 推荐(0)

2024年8月13日 #

C# Sql帮助类,可扩展

摘要: 查看代码 [System.AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, Inherited = false, AllowMultiple = false)] public class DbTableAttribute 阅读全文

posted @ 2024-08-13 15:33 HotSky 阅读(22) 评论(0) 推荐(1)

2024年8月5日 #

WPF WriteableBitmap通过GDI+绘制帮助类

摘要: 代码: public class WriteableBitmapGraphic : IDisposable { public WriteableBitmap Source { get; private set; } public System.Drawing.Bitmap bitmap { get; 阅读全文

posted @ 2024-08-05 18:14 HotSky 阅读(86) 评论(0) 推荐(0)