1.1 Factory Method

工厂方法指的是 创建接口类实例的接口 工厂方法的核心在于 将所依赖的接口的实例化延迟到 子类 框架使用抽象类定义和维护对象之间的关系,于是框架中的某些顶层抽象类 并没有 能够实例化 其所依赖的接口类的能力–所以该顶层抽象类只能将 实例化 某些接口类 的方法 委托给自己的子类(那些有足够信息的子类)去实现这些接口 实例如下的 IMachine::Crea...

阅读全文

common cli

find正则查找find -regex “<>” 忽略大小写查找文件find -iname *** 符号查找静态库nm libxvidcore.a-n: sort-u undefined-only 剪贴板 xclip复制内容到剪贴板echo “hello xclip” | xclip -selection c 建立别名alias clip&#x...

阅读全文

Regex

grep regex replaceperl-regex lookaroundhttps://learnbyexample.github.io/learn_gnugrep_ripgrep/perl-compatible-regular-expressions.html Lookarounds helps to create custom anchors an...

阅读全文

Iogl.02.ColorPie

Iogl.02.ColorPiesteps: create cpu frames cpu render pixel in it cuda copy frame to opengl texture opengl render this frame render123456789101112131415161718192021222324struct Fra...

阅读全文

Iogl.01.basic_OpenGL

iogl.01.basic_OpenGLthis section is test api of Helper to create simple opengl render example, without connecting to cudaHelper is simple wrapped utility of many things.

阅读全文

05 Kernal Params

cuda synatxhttps://docs.nvidia.com/cuda/cuda-c-programming-guide/#execution-configurationhttps://blog.csdn.net/qq_39575835/article/details/83027440 block + thread 1kernal_func<&...

阅读全文

Hugo + nginx + domain: this doc server

deps hugo: transformating markdown file to static-site html nginx: handle https request keyshugoconfig.tomlhttps://gohugo.io/getting-started/configuration/#all-configuration-setti...

阅读全文

制作win pe

doc 1.下载nothing to say 2. 创建2.1 创建工作文件1234# 管理员身份打开新安装的 部署和映像工作环境 这个脚本# 查看帮助 ,根据你的 cpu架构,选择命令,我是amd64copype /? copype amd64 E:\win_amd64 2.2 自定义 winpedism help win pe ocs list 使用 ...

阅读全文

安装多系统到同一磁盘

此导引安装 Win10,Win10-insider,Ubuntu-22.01,和Ubuntu-22.10 到同一磁盘 具体安装什么系统并不影响 我想你所需要的一些理解大概在这里: ntfs home : 介绍 基本的gpt分区的一些信息 YUMI 多系统启动盘制作工具 前置步骤,制作多系统启动盘: 下载或制作你需要安装的系统们的镜像,此步骤我下载了U...

阅读全文