unity hotfix solution (xlua, assetbundle)
<div class="media-content">
<div class="content">
<div></div>
<a href="/EAE 6900 Realtime Rendering 11/" class="has-link-black-ter is-size-6">EAE 6900 Realtime Rendering - Specular Light, Point Light</a>
<p class="is-size-7 is-uppercase">
<a class ...
unity hotfix solution (xlua, assetbundle) —— overview
<div class="media-content">
<div class="content">
<div></div>
<a href="/EAE 6900 Realtime Rendering 11/" class="has-link-black-ter is-size-6">EAE 6900 Realtime Rendering - Specular Light, Point Light</a>
<p class="is-size-7 is-uppercase">
<a class ...
Lua数据结构的实现
《Lua程序设计》笔记:高效地使用table来实现一些传统的数据结构
1 数组Lua库和长度操作符都遵循索引从1开始的约定。
2 多维数组123456789101112131415mt = {}for i=1, N do mt[i] = {} for j=1, M do mt[i][j] = 0 endend--合并索引(i*常量 + j)mt = {}for i=1, N do for j=1, M do mt[(i-1)*M+j] = 0 endend
3 链表、队列table是动态实体,所以实现链表很方便;实现队列的话,使用table库的insert、remove。1234567891011121314151617181920212223242526272829303132--主要是new/pushlast/popfirstList = {}function () return {first=0, last=-1}endfunction List.pushfirst(list, value) local f ...
leetcode 150. evaluate reverse polish notation
150. Evaluate Reverse Polish NotationDifficulty: Medium
Evaluate the value of an arithmetic expression in .
Valid operators are +, -, *, /. Each operand may be an integer or another expression.
Note:
Division between two integers should truncate toward zero.
The given RPN expression is always valid. That means the expression would always evaluate to a result and there won’t be any divide by zero operation.
Example 1:
123Input: ["2", "1", "+", "3", "*"]Ou ...
应(luan)有(qi)尽(ba)有(zao)
记录一些看到的有用的知识
金钱格式化用正则魔法实现:1234var test1 = '1234567890'var format = test1.replace(/B(?=(d{3})+(?!d))/g, ',')console.log(format)
非正则的优雅实现:123456 function (str) { return str.split('').reverse().reduce((prev, next, index) => { return ((index % 3) ? next : (next + ',')) + prev })}console.log(formatCash('1234567890'))
一句话实现:1(23333333.99).toLocaleString('en-US') // 23,333,333.99
1.2 lua 环境安装
linux 系统安装lualinux & Mac上安装 Lua 安装非常简单,只需要下载源码包并在终端解压编译即可,本文使用了5.3.4版本进行安装:
12345curl -R -O http://www.lua.org/ftp/lua-5.3.4.tar.gztar zxf lua-5.3.4.tar.gzcd lua-5.3.4make linux testmake install
mac 系统安装lua12345curl -R -O http://www.lua.org/ftp/lua-5.3.4.tar.gztar zxf lua-5.3.4.tar.gzcd lua-5.3.4make macosx testmake install
evaluation-measure
分类问题precision(精确率)P = frac{TP}{TP+FP} tag{1}recall(召回率)R = frac{TP}{TP+FN} tag{2}$F_1$精确率和召回率的调和均值,
begin{align*}
frac{2}{F_1} & = frac{1}{P} + frac{1}{R}\
F_1 & = frac{2TP}{2TP + FP + FN} tag{3}
end{align*}精确率和准确率都高的情况下,$F_1$值也会高。
laterhttp://charleshm.github.io/2016/03/Model-Performance/
lua 编程之 hello world
今天开始我要学 Lua 了,之所以要学习它,确实也是游戏开发目前需要的,涉及到热更新技术,Lua 相对来说还是比较成熟的,而且就目前主流的各种 Lua 框架的出现,学习 Lua 以及使用 Lua 的难度也是大大降低了。
首先来看下 Lua 是什么,Lua 是一种轻量小巧的脚本语言,用标准C语言编写并以源代码形式开放, 其设计目的是为了嵌入应用程序中,从而为应用程序提供灵活的扩展和定制功能。Lua还可以很方便的和其他程序进行集成(c++,c#,java,,,,),可以说用处还是挺多的,虽然目前我就知道热更新这块用到了。
既然说起了 Lua 这门语言,那免不了要和 Unity 正统编程语言 C# 比较一番。
Lua可以在几乎所有的操作系统和平台进行编译运行,可以很方便的更新代码,更新了代码后,可以直接在手机上运行,不需要重新安装(这也就是后续的热更新方案的特点)
而相比我们的 C#,C# 只能在特定的操作系统中进行编译成 dll 文件,然后打包进安装包在其他平台(Android、iOS)运行,在移动平台上不能更新替换已有的dll文件,除非重新下载安装包。当然现在也有以 C# 为主的热更新方 ...
evaluation of association patterns
This article is the note for reading _Introduction to Data Mining_ .
_Chapter 6. Association Analysis: Basic Concepts and Algorithms_
— Evaluation of Association Patterns.
GeneralAs the size and dimensionality of real commercial databases can be very large, we could easily end up with thousands or even millions of patterns, many of which might not be interesting. Therefore it is important to establish a set of well-accepted criteria for evaluating the quality of association patterns.
There are f ...


