这个问题来自于 leetcode 065:Valid Number如果用正则表达式来写一个浮点数的解析,大概是这样的:[+-]?(([0-9]+\.?) | (\.[0-9]))[0-9]*([eE][+-]?[0-9]+)?我自己使用 dot 画了一个状态机出来:如果编写代码来模拟这个状态机,可以...
分类:
其他好文 时间:
2015-08-13 23:35:29
阅读次数:
140
/* License: http://www.apache.org/licenses/LICENSE-2.0 Home page: http://code.google.com/p/dapper-dot-net/ Note: to build on C# 3.0 + .NET 3.5, inclu....
分类:
移动开发 时间:
2015-08-12 23:17:46
阅读次数:
1729
1. DPI(dot per inch):
DPI是鼠标移动每英寸时汇报给系统的点数。
2. CPI:
CPI是鼠标移动1英寸时向系统发出的移动信号的数量。
3. MouseSpeed, MouseThreshold1 和 MouseThreshold2:
MouseSpeed决定当鼠标移动时,光标应该以多快的速度(pixel的数量)移动以与之对应。这三个参数共同决定...
分类:
其他好文 时间:
2015-08-12 13:21:12
阅读次数:
723
1. DPI(dot per inch):
DPI是鼠标移动每英寸时汇报给系统的点数。
2. CPI:
CPI是鼠标移动1英寸时向系统发出的移动信号的数量。
3. MouseSpeed, MouseThreshold1 和 MouseThreshold2:
MouseSpeed决定当鼠标移动时,光标应该以多快的速度(pixel的数量)移动以与之对应。这三个参数共同决定...
分类:
其他好文 时间:
2015-08-12 11:30:50
阅读次数:
257
digraph sales
{
size = "5,5";
1[label="发生销售需求时"];
2[label="编辑订单"];
3[label="审批"];
4[label="是否为电子契约"];
5[label="发送到分销系统"];
6[label="分销系统是否同意"];
3 -> 1[lab...
分类:
其他好文 时间:
2015-08-10 20:29:00
阅读次数:
124
1 // 2 // reference_counted.cpp 3 // ~~~~~~~~~~~~~~~~~~~~~ 4 // 5 // Copyright (c) 2003-2013 Christopher M. Kohlhoff (chris at kohlhoff dot com)...
分类:
其他好文 时间:
2015-08-08 01:08:34
阅读次数:
152
1. 矩阵乘法的实现 ????numpy中有numpy.dot函数,用于处理矩阵之间的相乘: In?[2]:?a?=?np.reshape(np.arange(6),?(2,3))
In?[3]:?b?=?np.reshape(np.arange(6),?(3,2))
In?[4]:?np.dot(a,b)
Out...
分类:
其他好文 时间:
2015-07-28 11:10:37
阅读次数:
80
You can find Dapper on Google Code here:http://code.google.com/p/dapper-dot-net/and the GitHub distro here:https://github.com/SamSaffron/dapper-dot-ne...
分类:
移动开发 时间:
2015-07-26 06:05:54
阅读次数:
206
numpy中提供了不少数学中矩阵的运算、构造函数。闭上眼睛想一想,发现其中常用的也就是那么几个:cos, sin, mean, dot,
max,min, outer,argsort,ones,zeros,arrange,reshape,fft………等。想了半天,可以也不超过30个左右常用函数。但是numpy的确博大精深:查看文档发现有大概586个方法或属性!今天,我就记录一下numpy中,矩阵运...
分类:
其他好文 时间:
2015-07-24 01:32:23
阅读次数:
193
出现问题的代码
/***
* 请求静态html 模板
* @param url
* @param $jqueryDiv : 四个主要div之一
* @param templateHandle : 自定义,用于使用Dot js模板函数
* @param callback : 用于实现模板之后,绑定事件
* @param templateDa...
分类:
Web程序 时间:
2015-07-21 01:37:18
阅读次数:
819