unity shader 的学习笔记 float4

  • Post author:
  • Post category:其他

正在学习关于unity Shader,其中我自己总结了一些自己不懂的东西 1、Float Fixed float : 常见的写法有 float4 和 float3 float3 : 一般情况下我们指的是向量,例如 :float3 normal :NORMAL float4 : 对那些需要操作的顶点用 float4 来表示 ,例如 : float4 vertex : POSITION 那么我们为什么…

继续阅读 unity shader 的学习笔记 float4

【elasticsearch】Windows安装

  • Post author:
  • Post category:其他

一、环境 版本:es-6.4.2 Windows64 Java:1.8 二、下载 https://www.elastic.co/downloads/elasticsearch 三、安装 1、解压到相应的文件夹下 2、进入 bin双击 elasticsearch.bat 3、登录http://localhost:9200/ 版权声明:本文为hyj_king原创文章,遵循 CC 4.0 BY-SA 版…

继续阅读 【elasticsearch】Windows安装

pacemaker和haproxy

  • Post author:
  • Post category:其他

- pacemaker - 安装操作: yum install pacemaker -y corosync yum install -y crmsh-1.2.6-0.rc2.2.1.x86_64.rpm pssh-2.3.1-2.1.x86_64.rpm cd /etc/corosync/ cp corosync.conf.example corosync.conf vim corosync.co…

继续阅读 pacemaker和haproxy

单例模式的各种优化

  • Post author:
  • Post category:其他

饿汉 类加载的时候就创建了实例 优点:类加载的时候创建一次实例,避免了多线程同步问题 缺点:即使单例没被用到也会创建,浪费内存 public class Singleton { private static Singleton instance = new Singleton(); private Singleton() { } public static Singleton getInstanc…

继续阅读 单例模式的各种优化

ABAP BDC_OKCODE 解释

  • Post author:
  • Post category:其他

正文部分 更多讨论,可以关注我的公众号 /00. Enter /AB Go to overview =ZK Go to additional information =ENTE Enter (don't know exactly what is difference between /00) =PI select cursor location =STER Go to taxes =DELZ de…

继续阅读 ABAP BDC_OKCODE 解释

docker es安装IK分词

  • Post author:
  • Post category:其他

进入容器 docker exec -it myes /bin/bash 安装相应的版本 ./bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v6.5.4/elasticsearch-analysis-ik-6.5.4.zip 重启容器 dock…

继续阅读 docker es安装IK分词

在GPU工作站/服务器上运行代码及常用操作

  • Post author:
  • Post category:其他

服务器连接 本人所在的实验室服务器是安装了Ubuntu系统的台式机 首先,服务器是支持ssh远程连接的。在你的PC上,打开命令行,即可输入指令连接。(windows平台可以使用Xshell) 输入命令: ssh UserName@Server_IP 输入密码完成后回车进入服务器: 上传文件 推荐大家,打包上传代码(方便存档) scp PATH_TO_LOCAL UserName@ServerIP:…

继续阅读 在GPU工作站/服务器上运行代码及常用操作

关于const类型unique_ptr转换成非const

  • Post author:
  • Post category:其他

工作上遇到个问题,一个函数想传入std::vector<std::unique_ptr<T>>类型的变量,只想读取数组中unique_ptr的各个裸指针并返回,并且后面这些智能指针也用不到了。 因为只想读取,所以参数想传一个const std::vector<std::unique_ptr<T>>& vec进去(这个想法我现在想来是错误的,原…

继续阅读 关于const类型unique_ptr转换成非const

使用 Sklearn 构建决策树的最简单代码及说明

  • Post author:
  • Post category:其他

废话不多说,直接上代码! 重要的部分有注释,所有的参数都有参数说明,可以直接运行,适合小白。 转自本人的知乎文章: https://zhuanlan.zhihu.com/p/271043446 未经许可,禁止转载。 #1、使用sklearn自带的红酒数据集 from sklearn import tree from sklearn.datasets import load_wine from sk…

继续阅读 使用 Sklearn 构建决策树的最简单代码及说明

教你用测试的技术玩羊了个羊,如何秒杀一众好友?

  • Post author:
  • Post category:其他

【文章末尾有惊喜】 最近刷爆朋友圈的羊了个羊,因为其比较简单的界面、操作和“骚浪贱”的声音,导致这个游戏的服务器经常处于崩溃状态。但是真的很上头!玩了一遍又一遍,就是想过关!所以就像我老婆那样的小仙女都玩儿了个通宵,然后就变成下面这样了 今天她突然跑来问我,为啥有人过关20万次,我怎么就才过去一次也? 乍一听,我都愣住了:过关20万次? 就算一分钟过关一次,一天也才1440次,这得好几个月啊!所以…

继续阅读 教你用测试的技术玩羊了个羊,如何秒杀一众好友?