- 博客(7)
- 收藏
- 关注
原创 ssh配置多个Git key
生成ssh密钥,用如下命令ssh-keygen -t rsa -f ~/.ssh/id_rsa.key2配置config文件在~/.ssh目录下新建一个文件 config,包含以下内容Host gitlab服务器地址IdentityFile ~/.ssh/id_rsa.key2User 用户名
2022-04-11 09:08:38
644
原创 配置vscode C++调试环境
1.安装MinGW-w641)直接下载二进制文件2)解压放到任意位置(以下配置是直接放到D盘根目录)2.配置vscode1)在vscode打开一个空文件夹,并新建test.cpp2)vscode会自动产生一个 .vscode 文件夹,可以用组合键Ctrl+shift+P,然后分别选择c/c++: edit configurations(UI),open launch.json,tasks: configure default build task进行配置,最后在 .vscode 文件夹应该有三个.
2022-02-16 16:15:17
981
转载 Hg 常用命令
Mercurial Commandshttps://gist.github.com/cortesben/016cd401faae5a8dae59CommandsDescriptionhg pullget latest changes like git pull use flags like -u IDK why yethg addonly for new fileshg commitadd changes to commit with -m for messag
2021-09-09 18:22:59
472
原创 unity+pytorch手写数字识别
安装Barracudahttps://docs.unity3d.com/Packages/com.unity.barracuda@1.0/manual/Installing.htmlusing System.Collections;using System.Collections.Generic;using UnityEngine;using Unity.Barracuda;public class inference1 : MonoBehaviour{ public NNMod.
2021-03-21 17:32:51
3758
4
原创 xv6环境搭建
两行命令完成 xv6 环境搭建xv6环境需要riscv工具链以及qemu等环境,从源码编译不仅慢而且容易遇到各种问题,非常麻烦,在Ubuntu 20.04上可以按如下方式完成$ apt-get install git build-essential gdb-multiarch$ apt-get install qemu-system-misc gcc-riscv64-linux-gnu binutils-riscv64-linux-gnu下载源码$ git clone https://gitla
2021-02-17 09:03:26
648
1
原创 C#读srt字幕文件,并用于unity视频的字幕
srt字幕格式srt字幕包含多个字幕段,每个字幕段由以下几部分组成:字幕序号字幕起止时间字幕内容(可多行)空白行例如:22200:09:03,560 --> 00:09:04,940他怎么会来这里22300:09:04,950 --> 00:09:06,300我捡到了他的狗2.srt字幕文件解析此处的解析只保存了字幕里面一行的内容public class SubtitleBlock{ public int Index { get; privat.
2020-10-23 11:22:13
1923
原创 C# 读取csv文件
C# 读取csv文件原文链接:https://bravenewmethod.com/2014/09/13/lightweight-csv-reader-for-unity/using UnityEngine;using System;using System.Collections;using System.Collections.Generic;using System.Text.RegularExpressions; public class CSVReader{ stati
2020-10-22 14:49:51
395
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人