12 2024 档案

摘要:go minify是一款优秀的web相关文件压缩工具,从本人简单使用效果来看,js压缩比terser更好。 安装: go install github.com/tdewolff/minify/v2/cmd/minify@latest 使用: minify -r -o dest src/ 将src目录 阅读全文
posted @ 2024-12-31 16:03 卓能文 阅读(15) 评论(0) 推荐(0) 编辑
摘要:vite.config.ts: import { defineConfig } from 'vite' // https://vite.dev/config/ export default defineConfig({ build: { minify: true, target: "esnext" 阅读全文
posted @ 2024-12-29 19:27 卓能文 阅读(5) 评论(0) 推荐(0) 编辑
摘要:eframe_template是egui的一个模板示例程序。 rust-toolchain: # If you see this, run "rustup self update" to get rustup 1.23 or newer. # NOTE: above comment is for o 阅读全文
posted @ 2024-12-24 16:07 卓能文 阅读(8) 评论(0) 推荐(0) 编辑
摘要:implementation("io.ktor:ktor-client-cio:3.0.3") package org.example import io.ktor.client.HttpClient import io.ktor.client.engine.cio.* import io.ktor 阅读全文
posted @ 2024-12-21 19:17 卓能文 阅读(14) 评论(0) 推荐(0) 编辑
摘要:build.gradle.kts: import org.gradle.api.tasks.testing.logging.TestExceptionFormat import org.jetbrains.kotlin.gradle.dsl.JvmTarget import org.jetbrain 阅读全文
posted @ 2024-12-20 11:37 卓能文 阅读(6) 评论(0) 推荐(0) 编辑
摘要:/* * This file was generated by the Gradle 'init' task. * * This generated file contains a sample Kotlin application project to get you started. * For 阅读全文
posted @ 2024-12-20 11:03 卓能文 阅读(27) 评论(0) 推荐(0) 编辑
摘要:repositories { maven { setUrl("https://mirrors.huaweicloud.com/repository/maven/") } mavenLocal() // Use Maven Central for resolving dependencies. mav 阅读全文
posted @ 2024-12-20 10:43 卓能文 阅读(90) 评论(0) 推荐(0) 编辑
摘要:tasks.withType<Jar> { manifest { attributes["Main-Class"] = "com.example.MainKt" } } 阅读全文
posted @ 2024-12-19 17:01 卓能文 阅读(14) 评论(0) 推荐(0) 编辑
摘要:wsl2虚拟机默认不能通过windows代理访问网络,可通过如下设置: [wsl2] autoProxy = true dnsTunneling = true 这样就可共享windows代理服务器。 阅读全文
posted @ 2024-12-17 16:38 卓能文 阅读(13) 评论(0) 推荐(0) 编辑
摘要:import io import os from PyPDF2 import PdfReader, PdfWriter from reportlab.pdfgen import canvas from reportlab.lib.pagesizes import A4 from reportlab. 阅读全文
posted @ 2024-12-16 08:46 卓能文 阅读(45) 评论(0) 推荐(0) 编辑
摘要:import 'dotenv/config'; import { Hono } from 'hono'; import { streamText } from 'hono/streaming'; import OpenAI from 'openai'; const openai = new Open 阅读全文
posted @ 2024-12-04 19:07 卓能文 阅读(17) 评论(0) 推荐(0) 编辑
摘要:import 'dotenv/config'; import { Elysia, t } from 'elysia'; import OpenAI from 'openai'; const openai = new OpenAI({ apiKey: process.env.OPENAI_API_KE 阅读全文
posted @ 2024-12-04 17:07 卓能文 阅读(8) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< 阅读全文
posted @ 2024-12-03 20:34 卓能文 阅读(5) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示