-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
88 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Clinical | ||
|
||
## 2024-5-9 | ||
产品的部署,绑定到一起了,后面重构的时间也不够,就不会去修改了。 | ||
目前有两个地方需要修改的,一个是提交处,一个是后台处。 | ||
因为使用的UI(CSS库)不一致,部分逻辑放在protocol中的,每次修改都很麻烦,如果没有大需求基本不会给时间去修改了。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# [GLRF](https://github.com/lmj01/GLRF) | ||
> OpenGL Realtime Framework | ||
## FrameBuffer.hpp | ||
配置GL_FRAMEBUFFER,并绑定n(>=1)个GL_COLOR_ATTACHMENT0+n关联GL_TEXTURE_2D,如果有depth buffer,也配置好 | ||
|
||
注意两个函数都是在glBindFramebuffer有效之间进行操作 | ||
|
||
### [glDrawBuffers](https://registry.khronos.org/OpenGL-Refpages/gl4/html/glDrawBuffers.xhtml) | ||
> define an array of buffers into which outputs from the fragment shader data will be written | ||
shader输出到缓存中。它需要绑定Framebuffer Object,如果是0,就是默认的framebuffer绑定。 | ||
```c | ||
GLuint attachments[] = { GL_COLOR_ATTACHMENT0, GL_COLOR_ATTACHMENT1 }; | ||
glDrawBuffers(config.num_color_buffers, attachments); | ||
``` | ||
### [glFramebufferRenderbuffer](https://registry.khronos.org/OpenGL-Refpages/gl4/html/glFramebufferRenderbuffer.xhtml) | ||
> attach a renderbuffer as a logical buffer of a framebuffer object | ||
Renderbuffers cannot be attached to the default draw and read framebuffer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# [go](https://go.dev/) | ||
> | ||
- [language specification](https://go.dev/ref/spec) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// 汉字、字母、数字、下划线 | ||
const re1 = /^[\u4E00-\u9FA5A-Za-z0-9]+$/i; | ||
const re2 = new RegExp('^[\u4E00-\u9FA5A-Za-z0-9_]+$', 'i'); | ||
// 汉字 | ||
const re3 = /^[\u4e00-\u9fa5]{0,}$/i; | ||
const re3a = /^([\u4e00-\u9fa5]{0,})/i; | ||
const re3b = /[^\u4e00-\u9fa5]/g; // 提取汉字 | ||
const re3c = /[^\u4e00-\u9fa5A-Za-z]/g; // 提取汉字字母 | ||
// 邮件地址 | ||
const re4 = /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/i; | ||
/** | ||
* 正则表达式中的()作为分组来使用,获取分组匹配到的结果用Regex.$1 $2 $3....来获取 | ||
* @deprecated RegExp.$1这种方式已经废弃了 | ||
*/ | ||
const re4a = /(\w+)@(\w+)\.(\w+)(\.\w+)?/i; | ||
|
||
// let str1 = 'abc123'; | ||
// console.log(1, 'match', '1', str1.match(re1), '2', str1.match(re2)); | ||
// console.log(2, 'replace', '1', str1.replace(re1,''), '2', str1.replace(re2, '')); | ||
|
||
let str3 = '我得数字1', str3a = '11汉字', str3b = '11汉字aa', str3c = 'bb11汉字aa'; | ||
console.log(3, re3.test(str3), str3.match(re3), re3.test(str3a), str3a.match(re3)) | ||
if (re3a.test(str3)) { | ||
console.log(3, RegExp.$1, RegExp.$2); | ||
} | ||
if (re3a.test(str3a)) { | ||
console.log('3a',RegExp.$1, RegExp.$2); | ||
} | ||
console.log('3b', str3.replace(re3b, ''), str3a.replace(re3b,'')); | ||
console.log('3b', str3b.replace(re3c, ''), str3b.replace(re3c,'')); | ||
console.log('3b', str3c.replace(re3c, ''), str3c.replace(re3c,'')); | ||
|
||
// let str4 = '[email protected]', str4a = 'a.b.com'; | ||
// console.log(4, str4.match(re4), str4a.match(re4)); | ||
// if (re4a.test(str4)) { | ||
// console.log('4a1', RegExp.$1, RegExp.$2, RegExp.$3); | ||
// } | ||
// if (re4a.test(str4a)) { | ||
// console.log('4a2', RegExp.$1, RegExp.$2, RegExp.$3); | ||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters