随笔分类 -  笔记

学习笔记
摘要:golang没有原生的set 要实现set可以使用map来简易实现 定义一个Set可以这么定义 type Set[T comparable] struct { set map[T]struct{} } 为什么map的值类型用struct{}? 因为struct{}不占内存 package main 阅读全文
posted @ 2023-01-17 23:52 七つ一旋桜 阅读(42) 评论(0) 推荐(0)
摘要:helloworld 創建一個文件helloworld.pony actor Main new create(env: Env) => env.out.print("Hello, world!") 之後命令編譯程序 ponyc 這個命令會編譯當前目錄下所有的源文件 這其中,actor用於聲明一個類, 阅读全文
posted @ 2022-12-14 15:16 七つ一旋桜 阅读(32) 评论(0) 推荐(0)
摘要:linux 下載官網的三個工具,然後下載相應的依賴 之後將toolchain文件改名爲redc 之後將這三個玩意所在目錄放到path裏 之後就可以通過命令編譯程序了 windows 把red-toolchain.exe重命名(名字缩短点就行) 然后创建一个bat文件redc.bat "%~dp0re 阅读全文
posted @ 2022-12-14 14:53 七つ一旋桜 阅读(27) 评论(0) 推荐(0)
摘要:android studio配置 下载command-tools 下载flutter plugin flutter配置 下载fluttersdk 在 Windows 操作系统上安装和配置 Flutter 开发环境 - Flutter 中文文档 - Flutter 中文开发者网站 - Flutter 阅读全文
posted @ 2022-12-09 11:57 七つ一旋桜 阅读(84) 评论(0) 推荐(0)
摘要:https://github.com/derailed/k9s 阅读全文
posted @ 2022-12-03 00:29 七つ一旋桜 阅读(26) 评论(0) 推荐(0)
摘要:ranger ranger-1.9.3-4.el8.noarch.rpm CentOS 8, RHEL 8, Rocky Linux 8, AlmaLinux 8 Download (pkgs.org) rpm包下载链接 fish 安装软件包 shells:fish:release:3 / fish 阅读全文
posted @ 2022-11-30 19:35 七つ一旋桜 阅读(127) 评论(0) 推荐(0)
摘要:添加依赖 pnpm add -D commitizen cz-conventional-changelog package.json中添加以下配置 "config": { "commitizen": { "path": "cz-conventional-changelog" } } 阅读全文
posted @ 2022-11-26 19:35 七つ一旋桜 阅读(34) 评论(0) 推荐(0)
摘要:基本操作 安装vagrant 安装vmware-utility 配置环境变量 下载vmware-desktop插件 vagrant plugin install vagrant-vmware-desktop 下载centos7-box https://mirrors.ustc.edu.cn/cent 阅读全文
posted @ 2022-10-27 20:43 七つ一旋桜 阅读(724) 评论(0) 推荐(0)
摘要:准备 这个库需要nightly版本的rust,因此需要切换到nightly rustup toolchain install nightly # 下载nightly版本 rustup override set nightly # 临时切换 rustup default nightly # 将默认版本 阅读全文
posted @ 2022-10-17 13:36 七つ一旋桜 阅读(97) 评论(0) 推荐(0)
摘要:# 依赖 ```go import ( sq "github.com/Masterminds/squirrel" _ "github.com/go-sql-driver/mysql" "github.com/jmoiron/sqlx" ) ``` 定义数据实体 ```go type User str 阅读全文
posted @ 2022-10-12 12:25 七つ一旋桜 阅读(497) 评论(0) 推荐(0)
摘要:```shell git clone https://github.com/ultralytics/yolov5 cd yolov5 pip install -r requirements.txt ``` 然后是去roboflow下载数据集 里面一般解压完会有一个data.yaml,要在里面修改两个 阅读全文
posted @ 2022-10-06 13:59 七つ一旋桜 阅读(51) 评论(0) 推荐(0)
摘要:安裝wasm-pack cargo install wasm-pack 新建rust lib 項目 cargo new --lib <project name> 配置Cargo.toml [package] name = "rust_wasm" version = "0.1.0" edition = 阅读全文
posted @ 2022-09-30 19:16 七つ一旋桜 阅读(322) 评论(0) 推荐(0)
摘要:java 添加依赖 <repositories> <repository> <id>nexus-tencentyun</id> <name>Nexus tencentyun</name> <url>http://mirrors.cloud.tencent.com/nexus/repository/m 阅读全文
posted @ 2022-09-07 22:34 七つ一旋桜 阅读(689) 评论(1) 推荐(0)
摘要:![image](https://img2022.cnblogs.com/blog/2267877/202208/2267877-20220823160111991-687621180.jpg) 阅读全文
posted @ 2022-08-23 16:02 七つ一旋桜 阅读(47) 评论(0) 推荐(0)
摘要:使用ghcup安装haskell 详细参考如下 GHCup 源使用帮助 — USTC Mirror Help 文档 windows: # Windows 用户:以非管理员身份在 PowerShell 中运行如下命令 $env:BOOTSTRAP_HASKELL_YAML = 'https://mir 阅读全文
posted @ 2022-08-06 10:50 七つ一旋桜 阅读(912) 评论(0) 推荐(1)
摘要:后台 依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>or 阅读全文
posted @ 2022-07-21 00:10 七つ一旋桜 阅读(1085) 评论(0) 推荐(0)
摘要:Dubbo SpringCloud 先定义父工程,springboot版本为idea自己生成的2.3.7.RELEASE springcloud版本为Hoxton.SR12 springcloud alibaba版本为2.2.2.RELEASE pom文件如下 <?xml version="1.0" 阅读全文
posted @ 2022-07-10 21:52 七つ一旋桜 阅读(65) 评论(0) 推荐(0)
摘要:依赖 <dependency> <groupId>io.quarkus</groupId> <artifactId>quarkus-spring-web</artifactId> </dependency> <dependency> <groupId>io.quarkus</groupId> <ar 阅读全文
posted @ 2022-06-18 22:32 七つ一旋桜 阅读(1228) 评论(0) 推荐(0)
摘要:环境搭建 docker run -d --name clickhouse-server --ulimit nofile=262144:262144 clickhouse/clickhouse-server 将容器内config.xml拷贝至主机config目录 docker cp clickhous 阅读全文
posted @ 2022-06-10 23:54 七つ一旋桜 阅读(91) 评论(0) 推荐(0)
摘要:pom依赖 <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <kotlin.version>1.4.0</kotlin.version> <kotlin.code.style>offici 阅读全文
posted @ 2022-06-07 20:13 七つ一旋桜