2016-10-10 王财勇
最近要写技术文档,里面包含大量的数学公式,本来想用markdown,但是 markdown不适合提交到公司,于是想着还是用自己学过的Latex吧。 于是在网上去搜使用Latex写技术文档/技术书籍的模板,还真找到了一篇,即《用 LaTeX 排版技术书籍》。本来他提示使用tex studio编译,但我使用tex studio编译后可以运行,却不能导出pdf,总是提示: ```tex ** WARNING ** Obsolete four arguments of "endchar" will be used for Type 1 "seac" operator. ** ERROR ** This font using the "s 继续阅读 »
2014-08-16 Lingxian Kong
获取一个类的所有子类 代码来源:rally def itersubclasses(cls, _seen=None): """Generator over all subclasses of a given class in depth first order.""" if not isinstance(cls, type): raise TypeError(_('itersubclasses must be called with ' 'new-style classes, not %.100r') % cls) _seen = _se 继续阅读 »
2016-08-24 ruki
TBOOX focus on cross-platform development using c language. Welcome to join the TBOOX Open Source Community if you want to be interesting to our open source projects. :) 继续阅读 »
2014-12-03 Kun Ren
r nse
One of my favorite features of R is its meta-programming facilities. It can be simply demonstrated by the following examples. 继续阅读 »
2016-08-12 ruki
tbox对于数据文件的解析提供了完善的支持,可以对各种二进制数据,文件数据流,网络数据流等进行各种解析操作 并且提供了一整套字节解析、比特位解析的接口,来支持各种流模式: stream 通用数据流,提供对流式数据的读写和解析,支持多层流嵌套以及各种协议(http, socket, file, data ...) 对于如何使用stream,这里暂时不详细介绍了,之后会单独重点介绍下,这里主要是为了描述,如何使用stream来处理字节数据的解析 例如,我要从数据流中,读取一个大端的16bits数值,很简单,只要: c tb_uint16_t value; if (tb_stream_bread_u16_be(stream, 继续阅读 »
2015-02-04 veryyoung
今天突然想用markdown写博文,这样应该会方便不少。 开工 1.下载插件。 这里我选择了Markdown QuickTags 在官网看到 !This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress. 有点被惊呆 2.启用插件 下载完该插件之后,放入WordPress的plugins文件夹下,上传代码,然后再后台启用即 继续阅读 »
2014-04-29 veryyoung
题目链接: http://oj.leetcode.com/problems/two-sum/ 题目内容: Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to the target, where index1 must be less than index2. Please note that your return 继续阅读 »
2014-03-25 W.Y.
在 JavaScript 中处理异步和回调就是家常便饭,我们通常会面对这样一些问题: 1. 如何优雅滴组织我们的回调代码 2. 对异步函数错误处理的最佳实践是什么 3. 异步嵌套问题 4. 怎样使我们的代码可读性和可维护性更高 Programs are meant to be read by humans and only incidentally for computers to execute. 程序是给人读的,只是顺带让计算机执行一下。 ——《编写可维护的JavaScript》@Donald Knuth 当然,最常见也是最简单的处理方式就是,直接将回调函数或错误处理函数作为异步函数的参数,在异步函数返回时进行相应的调用,这 继续阅读 »
2014-04-08 Kun Ren
In data-driven statistical computing and data analysis, applying a chain of commands step by step is a common situation. However, it is neither straightforward nor flexible to write a group of deeply nested functions. It is because the function that comes later must be written first. 继续阅读 »
2016-03-22 Klaus Ma
Background Resources can be reserved by frameworks in a variety of ways, including: Static reservations Dynamic reservations via Offer::Operations Dynamic reservations via HTTP endpoints Quotas (None-Goal) 继续阅读 »