最近要写技术文档,里面包含大量的数学公式,本来想用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继续阅读 »
获取一个类的所有子类
代码来源: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继续阅读 »
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.
:)继续阅读 »
今天突然想用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文件夹下,上传代码,然后再后台启用即继续阅读 »
题目链接: 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继续阅读 »
在 JavaScript 中处理异步和回调就是家常便饭,我们通常会面对这样一些问题:
1. 如何优雅滴组织我们的回调代码
2. 对异步函数错误处理的最佳实践是什么
3. 异步嵌套问题
4. 怎样使我们的代码可读性和可维护性更高
Programs are meant to be read by humans and only incidentally for computers to execute. 程序是给人读的,只是顺带让计算机执行一下。 ——《编写可维护的JavaScript》@Donald Knuth
当然,最常见也是最简单的处理方式就是,直接将回调函数或错误处理函数作为异步函数的参数,在异步函数返回时进行相应的调用,这继续阅读 »
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.继续阅读 »
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)继续阅读 »