2016-07-18 ruki
xmake在xmake.lua中提供了 $(varname) 的语法,来支持内置变量的获取,例如: lua add_cxflags("-I$(buildir)") 它将会在在实际编译的时候,将内置的 buildir 变量转换为实际的构建输出目录:-I./build 并且这些变量在自定义脚本中,也是可以支持的,例如: lua target("test") after_build(target) print("build ok for $(plat)!") end 这将会在编译完后,输出: lua build ok for macosx! 这些内置变量,大部分都是通过配置的时候,缓存的 继续阅读 »
2016-09-27 Eric Wang
 Lucene英文目录结构和功能模块 - core: Lucene core library - analyzers    analyzers-common: Analyzers for indexing content in different languages and domains.    analyzers-icu: Analysis integration with ICU (International Components for Unicode).    analyzers-kuromoji: Japanese Morphological Analyzer    analyzers-morfologik: Anal 继续阅读 »
2014-08-06 Kun Ren
rlist 0.3 is released! This package now provides a wide range of functions for dealing with list objects. It can be especially useful when they are used to store non-tabular data. 继续阅读 »
2014-05-31 Kun Ren
Gitbook is rather a relatively new concept on the web. It provides a user-friendly framework for authors to write and produce online books with beautiful illustrations and responsive interactions. It allows authors to write in Markdown syntax, which is very easy to learn and use, so that they can focus more on the cont 继续阅读 »
2017-02-06 高悦翔
本文是「Java 8 函数式编程」第三章的读书笔记,章名为流。本章主要介绍了外部迭代与内部迭代以及常用的高阶函数。 外部迭代与内部迭代 外部迭代 过去我们要对一个List进行迭代时,往往会采用如下方式: java int count = 0; for (Artist artist : artists) { if (artist.isFrom("London")) { count++; } } 继续阅读 »
2016-05-11 MoreFreeze
git
Today I want to share a code snippet. It used for reminding me run rake preview before git commit. 继续阅读 »
2014-01-24 Kun Ren
r
R rocks in both academia and industry nowadays. A rapidly increasing number of researchers choose R to be one of their productive tools for data analysis and data visualization. It is partially because the software is totally free and open-source but also because the community behind the stage who contributes to nearly 继续阅读 »
2016-05-18 craneyuan
Question Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight). For example, the 32-bit integer ’11' has binary representation 00000000000000000000000000001011, so the function should return 3. 解说 这道题的意思是统计32位整数二进制格式下的‘1’的个数。 more Solution rig 继续阅读 »
2016-07-31 craneyuan
问题描述 在长度为N的整形数组中,求连续子串的和的最大值。 例如:1 2 4 5 -11 5 -3,结果为6。 注意:要考虑到数组中元素都为负数的情况。 O(n)解法 java public static int maxSubSum(int[] a) { int maxSum = a[0]; int curSum = 0; for (int j = 0; j < a.length; j++) { curSum += a[j]; if (curSum > maxSum) { maxSum = curSum; } else if ( 继续阅读 »
2016-10-20 demon7452
VR
Google DayDream-Android篇 官方文档 一、Google VR SDK for Android 继续阅读 »