Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lmj01 committed Jan 19, 2024
1 parent dc76fa1 commit 7bf4626
Show file tree
Hide file tree
Showing 12 changed files with 117 additions and 6 deletions.
4 changes: 3 additions & 1 deletion ai/model.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,6 @@ data is upstream in process of developing good models
[microsoft的版本](https://github.com/onnx/onnx)[ORT--ONNX Runtime: cross-platform, high performance ML inferencing and training accelerator](https://github.com/Microsoft/onnxruntime)
[可参考大致流程](https://github.com/microsoft/onnxjs)
[onnx example中可以找到一个例子,找到模型,把模型参数传入就可以得到结果了](https://github.com/microsoft/onnxruntime-inference-examples)
[onnx example中可以找到一个例子,找到模型,把模型参数传入就可以得到结果了](https://github.com/microsoft/onnxruntime-inference-examples)

[开源可用的一些模型A collection of pre-trained, state-of-the-art models in the ONNX format ](https://github.com/onnx/models)
5 changes: 5 additions & 0 deletions articles/2024/experience.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# 经验

## 2024-1-18
在调试小程序的过程中,通过喂养数据,对数据产生的问题进行分析,分析每个数据,对每一个数据的来源与关系都分析得很彻底。
一步步得去找数据之间得关系,画图找出逻辑上得效果,通过效果对比来分析。
4 changes: 4 additions & 0 deletions cg/image/JPEG.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,9 @@ quality依赖图像色域,图像的对比度,用户对图像的敏感度
75% JPEG quality and lower begins to show obvious differences in the image, which can reduce your website user experience.
60% JPEG quality good for web

## 注意事项

- jpg格式不支持透明,因为其色彩模式和压缩方法,基于DCT(离散余弦变换),变换到频域才能压缩,有透明部分无法进行傅里叶变换。

## 参考
- [This section contains TIFF related topics. It includes a freeware TIFF Tag Viewer application, the LibTiff mailing list archive, and a TIFF-specific links page](https://www.awaresystems.be/imaging.html)
1 change: 1 addition & 0 deletions cg/opengl.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,3 +188,4 @@ glBindBuffer(GL_PIXEL_PACK_BUFFER, 0);
- [OpenGL教程和资料集合](https://zhuanlan.zhihu.com/p/41818595)
- [OpenGL Loading Library](https://www.khronos.org/opengl/wiki/OpenGL_Loading_Library)
- [GLRF - OpenGL Realtime Framework](https://github.com/DunkleMango/GLRF)
- [g-truc creation, OpenGL Mathematics (GLM) OpenGL Image (GLI)等有关opengl的文档与知识](https://www.g-truc.net/)
8 changes: 8 additions & 0 deletions cg/svg.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ clean-flag标记顺时针1逆时针0
x y 圆弧终点坐标
Z = closepath, To close together the SVG path. Factors – None


## Attribute

### stroke
Expand All @@ -31,6 +32,13 @@ Z = closepath, To close together the SVG path. Factors – None

可以使用SVG+CSS3实现文字的动态霓虹灯效果,就是多个描边动画使用不同的animatino-delay即可。

### path Arc

[Drawing a circular arc in an SVG ](https://alexwlchan.net/2022/circle-party/)它的一张图来说明参数![path arc](../images/svg/PathArc.svg)
[Interactive Circle Arc](http://xahlee.info/js/svg_circle_arc.html)



## free icons

- [Open Iconic is the open source sibling of Iconic](https://github.com/lmj01/open-iconic)
Expand Down
12 changes: 10 additions & 2 deletions cg/tools/CAD.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
# CAD

## 吸附Absorb
## 编辑器子概念

### 吸附Absorb

对一个元素拖拽时,生成当前元素与其他元素对齐的参考线,
实现相近元素间的四条边与水平中心线或垂直中心线对齐.
在拖动完成后实现自动吸附对齐

应该是在编辑情况下,对于拖拽的元素自动对齐的功能
应该是在编辑情况下,对于拖拽的元素自动对齐的功能

### 自动布局

### Frame
图框
###
76 changes: 76 additions & 0 deletions cpl/cplusplus.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,82 @@
- header include guards,标准文件方法,它不能区分相同的macro名称在一个或多个文件中重名,可能造成问题
- [pragma](https://en.cppreference.com/w/cpp/preprocessor/impl),在文件系统层面上标识文件,但不能保证多个文件的存在

### 资源释放
睡着C++的发展,资源的管理也在发生变化,如动态分配的内存。
- Rule of Three, 经典规则,C11之前的代码,如果实现了一个,就需要实现其他两个
- 析构函数,释放资源
- 拷贝构造函数,构造新对象时复制资源
- 拷贝赋值运算符,在已经存在的对象之间赋值时资源的复制
- Rule of Five, C++开始引入移动语义和右值引用,如果Three中的任何一个函数实现了,那么现在应该是五个函数都需要实现了
- 析构函数、拷贝构造函数、拷贝赋值运算符
- 移动构造函数,创建新对象时,从源对象窃取资源,而不是复制
- 移动赋值运算符,在对象之间赋值时,从源对象窃取资源
- Rule of Zero, 推荐使用现代C++特性,如智能指针管理,则类不应该自定义任何拷贝控制函数,而应该让编译器自动生成这些函数
- std::shared_ptr
- std::unique_ptr

```c++
class Three {
char* buffer;
public:
Three(size_t length) {
buffer = new char[length];
}
~Three() {
delete[] buffer;
}
Three(const Three& other) {
buffer = new char[strlen(other.buffer)+1];
strcpy(buffer, other.buffer);
}
Three& operator=(const Three& other) {
if (this != &other) {
delete[] buffer;
buffer = new char[strlen(other.buffer) + 1];
strcpy(buffer, other.buffer);
}
return *this;
}
};
class Five {
char* buffer;
public:
Five(size_t length) {
buffer = new char[length];
}
~Five() {
delete[] buffer;
}
Five(const Five& other) {
buffer = new char[strlen(other.buffer)+1];
strcpy(buffer, other.buffer);
}
Five& operator=(const Five& other) {
if (this != &other) {
delete[] buffer;
buffer = new char[strlen(other.buffer) + 1];
strcpy(buffer, other.buffer);
}
return *this;
}
Five(Five&& other) noexcept : buffer(other.buffer) {
other.buffer = nullptr;
}
Five& operator=(Five&& other) noexcept {
if (this!= &other) {
delete[] buffer;
buffer = other.buffer;
other.buffer = nullptr;
}
return *this;
}
};
class Zero {
std::unique_ptr<char[]> buffer;
public:
Zero(size_t length):buffer(new char[length]){}
};
```
## TMP(template metaprogramming)
Expand Down
8 changes: 7 additions & 1 deletion database/database.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,10 @@ ACID属性
- 原子性Atomicity
- 一致性Consistency
- 隔离性Isolation
- 持久性Durability
- 持久性Durability

## 工具

- [Provides easy browsing of tables, variables, functions and configuration settings.](https://www.timestored.com/qstudio/)
- [HeidiSQL is free software, and has the aim to be easy to learn. "Heidi" lets you see and edit data and structures from computers running one of the database systems MariaDB, MySQL, Microsoft SQL, PostgreSQL and SQLite.](https://www.heidisql.com/)
- [Database manager for MySQL, PostgreSQL, SQL Server, MongoDB, SQLite and others. Runs under Windows, Linux, Mac or as web application ](https://github.com/dbgate/dbgate)
1 change: 1 addition & 0 deletions images/svg/PathArc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions index/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@

## 2024

- [2024经验](../articles/2024/experience.md)
- [2024趋势](../articles/2024/trend.md)

## 2023
Expand Down
2 changes: 0 additions & 2 deletions index/computerScience.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
- [redis](../database/redis.md)
- [MySql](../database/mysql.md)
- [sql](../database/sql.md)
- [Provides easy browsing of tables, variables, functions and configuration settings.](https://www.timestored.com/qstudio/)
- [HeidiSQL is free software, and has the aim to be easy to learn. "Heidi" lets you see and edit data and structures from computers running one of the database systems MariaDB, MySQL, Microsoft SQL, PostgreSQL and SQLite.](https://www.heidisql.com/)

### 数据结构

Expand Down
1 change: 1 addition & 0 deletions java/maven.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Maven

## 命令
配置好环境后,使用vscode开发,不使用IDE
- mvn test

## itext7
Expand Down

0 comments on commit 7bf4626

Please sign in to comment.