丙午🐎年

acc8226 的博客

发布线上电子书

目前 npm gitbook 项目已不再更新,请使用  GitBook.com / GitHub integration

As the efforts of the GitBook team are focused on the GitBook.com platform, the CLI is no longer under active development.
All content supported by the CLI are mostly supported by our GitBook.com / GitHub integration.
Content hosted on the legacy.gitbook.com will continue working until further notice. For differences with the new vesion, check out our documentation.

导出为 word 文件

前提条件:下载 Releases·jgm/pandoc https://github.com/jgm/pandoc/releases。或者使用 typora。

不带模板的导出 word

阅读全文 »

Gitlab 搭建

CentOS 平台

硬件要求

Omnibus GitLab 软件包需要大约 2.5 GB 的存储空间用于安装。

4 核 是推荐的最小核数,支持多达 500 名用户

4GB RAM 是必需的最小内存,支持多达 500 名用户

PostgreSQL 是唯一支持的数据库,捆绑在 Omnibus GitLab 软件包中。您也可以使用外部 PostgreSQL 数据库。

通过下载包安装

1
2
3
4
5
rpm -i gitlab-ce-13.11.1-ce.0.el7.x86_64.rpm
vim /etc/gitlab/gitlab.rb
# 重新生成配置
gitlab-ctl reconfigure
gitlab-ctl restart
阅读全文 »

功能使用

github 获取 token

Personal access tokens
https://github.com/settings/tokens

New Personal Access Token
https://github.com/settings/tokens/new

记住:生成的 token 只会出现一次,可以直接复制使用。

github 的一些快捷键和在线编辑器

按键 说明
s 跳转到搜索框
t 用于仓库内的文件搜索
l 在仓库文件显示页,键入l后在弹处窗口输入行号,表示跳转到该文件的指定行
b 查看文件改动进度
ctrl+k 快速定位查看内容模块
. 进入在线编辑器模式
阅读全文 »

docsify 介绍

https://docsify.js.org/#/zh-cn/quickstart

基本组件的更新包

docsify.min.js 压缩版
https://cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js
最新所在文件夹 https://cdn.jsdelivr.net/npm/docsify/lib/

vue.css 完整版
https://cdn.jsdelivr.net/npm/docsify/themes/vue.css
最新所在文件夹 https://cdn.jsdelivr.net/npm/docsify/themes/

vue.css 压缩版
https://cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css
最新所在文件夹 https://cdn.jsdelivr.net/npm/docsify/lib/themes/

阅读全文 »

C# 事件(Event)
事件(Event) 基本上说是一个用户操作,如按键、点击、鼠标移动等等,或者是一些提示信息,如系统生成的通知。应用程序需要在事件发生时响应事件。例如,中断。

C# 中使用事件机制实现线程间的通信

通过事件使用委托
事件在类中声明且生成,且通过使用同一个类或其他类中的委托与事件处理程序关联。包含事件的类用于发布事件。这被称为 发布器(publisher) 类。其他接受该事件的类被称为 订阅器(subscriber) 类。事件使用 发布-订阅(publisher-subscriber) 模型。

发布器(publisher) 是一个包含事件和委托定义的对象。事件和委托之间的联系也定义在这个对象中。发布器(publisher)类的对象调用这个事件,并通知其他的对象。

订阅器(subscriber) 是一个接受事件并提供事件处理程序的对象。在发布器(publisher)类中的委托调用订阅器(subscriber)类中的方法(事件处理程序)。

声明事件(Event)

在类的内部声明事件,首先必须声明该事件的委托类型。例如:

1
public delegate void BoilerLogHandler(string status);
阅读全文 »
0%