前言 MoonSharp是一个支持C#调用lua脚本的类库,支持.net, .net core, mono, unity,因此在.net core中也能够使用,而且加载和调用lua也很方便简单; 官网:http://www.moonsharp.org/ 源码:https://github.com/x ...
分类:
Web程序 时间:
2017-02-06 00:24:36
阅读次数:
436
相信很多同学都知道“贝塞尔曲线”这个词,我们在很多地方都能经常看到。但是,可能并不是每位同学都清楚地知道,到底什么是“贝塞尔曲线”,又是什么特点让它有这么高的知名度。
贝塞尔曲线的数学基础是早在...
分类:
其他好文 时间:
2017-02-04 15:22:53
阅读次数:
228
Given the root and two nodes in a Binary Tree. Find the lowest common ancestor(LCA) of the two nodes.The lowest common ancestor is the node with large ...
分类:
其他好文 时间:
2017-02-03 10:44:09
阅读次数:
176
这是今天坐公交时继续阅读这篇采访报道的收获。新一代.NET平台的三大框架是:.NET Core, .NET Framework, Mono,它们的定位分别是:.NET Core 定位于跨平台服务端应用开发;.NET Framework 定位于 Windows 桌面应用开发;Mono 定位于移动应用开... ...
分类:
Web程序 时间:
2017-02-02 15:33:18
阅读次数:
244
[C#] 纯文本查看 复制代码 ? 1 2 3 4 public BehaveResult TickMyactionAction(Tree sender) { Debug.Log("我的action"); return BehaveResult.Success; } [C#] 纯文本查看 复制代码 ...
分类:
其他好文 时间:
2017-02-01 18:05:30
阅读次数:
221
a) 计算打印所有参数的和乘以基数(base=3)的结果 b) 如果参数中最后一个参数为(base=5),则设定基数为5,基数不参与求和计算。 def myfun(*num): rs=0 for i in num: rs=rs+i if num[-1]==5: re=(rs-5)*5 else: r ...
分类:
其他好文 时间:
2017-01-31 16:58:14
阅读次数:
758
You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a conca... ...
分类:
其他好文 时间:
2017-01-24 13:39:56
阅读次数:
264
开发过程中遇到一些对象转string和string转对象的问题,浪费了很久,现在用的熟练些了,总结如下: 1.字符串尽量定义成json可解析的,如{"name":"a","param":"b"},而不是{"a":"b"} 2.用到开源项目:fastjson 需要引入: <dependency> <g ...
分类:
编程语言 时间:
2017-01-22 19:32:41
阅读次数:
231
Add kernel python3 in jupyter http://ipython.readthedocs.io/en/stable/install/kernel_install.html After this, still can not use numpy, to install nump ...
分类:
其他好文 时间:
2017-01-21 13:06:12
阅读次数:
186
看过javascript高级程序设计的人,在javascript高级程序设计里,应该看到了介绍了有关defer和async的区别,可是比较浅显,而且也说得不是很清楚。下面我们来通过图片来详细了解下dfer和async的区别。 下面来看看这三句话: 1. 没有 defer 或 async,浏览器会立即... ...
分类:
其他好文 时间:
2017-01-21 10:52:52
阅读次数:
214