2014-02-15 Kun Ren
r
Writing R code can be very easy. It depends on how much you want to achieve with your code and what features you want your code to support. 继续阅读 »
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-04-14 Borg
This document is not completed and will be updated anytime. Unix Unix is a family of multitasking, multiuser computer OS. 继续阅读 »
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-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-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 当然,最常见也是最简单的处理方式就是,直接将回调函数或错误处理函数作为异步函数的参数,在异步函数返回时进行相应的调用,这 继续阅读 »
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) 继续阅读 »