07 2024 档案
摘要:地址:Just-validate package.json: { "name": "vanilla-template", "version": "1.0.0", "type": "module", "scripts": { "dev": "farm", "start": "farm", "build
阅读全文
摘要:formvalidation是一个比较好用的浏览器端验证框架。下面是简单示例。 安装依赖: pnpm i @form-validation/bundle pnpm i @form-validation/styles pnpm i @form-validation/plugin-tachyons in
阅读全文
摘要:Cargo.toml: [package] name = "wasmdemo" version = "0.1.0" edition = "2021" [dependencies] sycamore = "0.9.0-beta.2" src/main.rs: use sycamore::prelude
阅读全文
摘要:sudo fuser -k 8080/tcp
阅读全文
摘要:main.go: package main import ( "fmt" "net/http" "time" ) var indexHtml = `<!DOCTYPE html> <html> <body> <h1>SSE Messages</h1> <button id="stop">Stop</
阅读全文
摘要:Cargo.toml: [package] name = "sse" version = "0.1.0" edition = "2021" [dependencies] futures-util = "0.3.30" poem = { version = "3.0.3", features = ["
阅读全文
摘要:Cargo.toml: [package] name = "sse" version = "0.1.0" edition = "2021" [dependencies] axum = "0.7.5" axum-extra = { version = "0.9.3", features = ["typ
阅读全文
摘要:package main import ( "bufio" "fmt" "log" "time" "github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2/middleware/cors" "github.com/valyala/fasth
阅读全文
摘要:package main import ( "fmt" "time" "git.akyoto.dev/go/web" ) func main() { s := web.NewServer() // Static route s.Get("/", func(ctx web.Context) error
阅读全文
摘要:Cargo.toml: [package] name = "demo" version = "0.1.0" edition = "2021" [dependencies] serde = { version = "1.0.204", features = ["derive"] } ntex = {
阅读全文
摘要:Cargo.toml: [package] name = "demo" version = "0.1.0" edition = "2021" [dependencies] bytes = "1.6.1" may = "0.3.45" may_minihttp = { git = "https://g
阅读全文
摘要:Cargo.toml: [dependencies] serde = {version = "1.0.204", features = ["derive"]} serde_json = "1.0.120" main.rs: use serde::{Deserialize, Serialize}; u
阅读全文
摘要:index.ts: // this becomes an internal file path import html from "./index.html" with { type: "file" }; import { file } from "bun"; export default { fe
阅读全文
摘要:import { Elysia } from 'elysia' const app = new Elysia() .get('/ok', function* () { yield 1 yield 2 yield 3 }) .listen(3000)
阅读全文
摘要:server.ts: import { serve } from "bun"; const id = Math.random().toString(36).slice(2); serve({ port: process.env.PORT || 8080, development: false, //
阅读全文
摘要:创建src/index.html: <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1
阅读全文
摘要:package main import ( "embed" "io/fs" "net/http" ) //go:embed all:dist var assets embed.FS func Assets() (fs.FS, error) { return fs.Sub(assets, "dist"
阅读全文
摘要:更多信息参见主页:https://www.marticliment.com/unigetui/
阅读全文
摘要:$input_path = "D:\wps" $output_path = "D:\pdf" $wps = New-Object -ComObject KWPS.Application $Format = [Microsoft.Office.Interop.Word.WdSaveFormat]::w
阅读全文
摘要:$path = "D:\word\" $word_app = New-Object -ComObject Word.Application # $Format = [Microsoft.Office.Interop.Word.WdSaveFormat]::wdFormatXMLDocument $F
阅读全文
摘要:Set wrd = GetObject(, "Word.Application") wrd.Visible = False path = "D:\word\" wdFormatPDF = 17 Set fso = CreateObject("Scripting.FileSystemObject")
阅读全文
摘要:package main import ( "log" "os" "path/filepath" "github.com/unidoc/unioffice/document" "github.com/unidoc/unioffice/document/convert" ) func main() {
阅读全文
摘要:package main import ( "log" "os" "path/filepath" ole "github.com/go-ole/go-ole" "github.com/go-ole/go-ole/oleutil" ) // NOTE: This example can only ru
阅读全文