上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 49 下一页
摘要: go get github.com/spf13/cast 转string示例 cast.ToString("mayonegg") // "mayonegg" cast.ToString(8) // "8" cast.ToString(8.31) // "8.31" cast.ToString([]b 阅读全文
posted @ 2024-06-05 17:20 朝阳1 阅读(39) 评论(0) 推荐(0)
摘要: https://github.com/longbridgeapp/opencc main.go package main import ( "fmt" "log" "github.com/longbridgeapp/opencc" ) func main() { s2t, err := opencc 阅读全文
posted @ 2024-06-05 15:40 朝阳1 阅读(142) 评论(0) 推荐(0)
摘要: IaaS – 基础设施即服务 租用服务器、存储、网络等基础设施,自行开发和部署软件系统。 比如去:阿里云买服务器; PaaS – 平台即服务 基于第三方软件部署环境进行业务逻辑开发,不用管底层系统和硬件设施。 比如开发微信小程序就是基于腾讯的部署环境; SaaS – 软件即服务 软件的开发、管理、部 阅读全文
posted @ 2024-06-05 09:38 朝阳1 阅读(38) 评论(0) 推荐(0)
摘要: .gitlab-ci.yml stages: - build variables: REGISTRY: harbor.xxxxx.com PROJECT_NAME: go-api FULL_IMAGE_NAME: $REGISTRY/$PROJECT_NAME/$CI_COMMIT_REF_NAME 阅读全文
posted @ 2024-06-04 11:57 朝阳1 阅读(19) 评论(0) 推荐(0)
摘要: 前缀树 package xxxx const defaultMask = '*' type ( TrieOption func(trie *trieNode) Trie interface { Filter(text string) (string, []string, bool) FindKeyw 阅读全文
posted @ 2024-06-04 11:44 朝阳1 阅读(43) 评论(0) 推荐(0)
摘要: go get github.com/oschwald/geoip2-golang 下载GeoIP2-City.mmdb https://dev.maxmind.com/geoip/geolite2-free-geolocation-data main.go package main import ( 阅读全文
posted @ 2024-06-03 16:04 朝阳1 阅读(299) 评论(0) 推荐(0)
摘要: 老是忘记 还是做个笔记把 命令,email@email.com替换成自己的邮箱 ssh-keygen -t rsa -C "email@email.com" 生成公钥位置 windows C:\Users\[用户名]\.ssh linux ~/.ssh 把id_rsa.pub的内容,复制到git的后 阅读全文
posted @ 2024-06-03 11:19 朝阳1 阅读(7) 评论(0) 推荐(0)
摘要: 上篇写了自动扣图 https://www.cnblogs.com/qcy-blog/p/18207984 这个适合把所有的东西扣出来 如果是只扣个头发之类的就不行了,推荐使用ComfyUI Segment Anything 地址 https://github.com/storyicon/comfyu 阅读全文
posted @ 2024-05-30 16:33 朝阳1 阅读(938) 评论(0) 推荐(0)
摘要: 之前用yii2的时候框架封装的几个数组函数很好用,中间换了框架,把函数封装成了util <?php namespace app\utils; interface Arrayable { /** * Returns the list of fields that should be returned 阅读全文
posted @ 2024-05-27 13:58 朝阳1 阅读(38) 评论(0) 推荐(0)
摘要: 上一篇写了人物抠图 https://www.cnblogs.com/qcy-blog/p/18207984 抠图模型上一篇已经安装了 工作流,导入并安装缺失节点,基础大模型选择一个自己喜欢的就好了 { "last_node_id": 41, "last_link_id": 65, "nodes": 阅读全文
posted @ 2024-05-23 15:38 朝阳1 阅读(1812) 评论(0) 推荐(0)
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 49 下一页