Looks quite intuitive at the very first sight... I thought:rect[x, y, w+1, h+1] = rect[x, y, w, h] + num[x + w + 1, y..y+h+1] + num[x..x+w+1, y+h+1] -...
分类:
其他好文 时间:
2014-06-26 21:20:32
阅读次数:
232
转自:http://blog.sina.com.cn/s/blog_5fdbd0410100pmnn.htmlJohnKarlBrandon获取第一个元素:$("ul li:first-child")JohnKarlBrandon获取第一个元素:$("#getfirst").find("ul li:...
分类:
Web程序 时间:
2014-06-26 19:37:50
阅读次数:
702
#include "stdafx.h"#include#include#includeusing namespace std;int _tmain(int argc, _TCHAR* argv[]){ pairoPoint; //必须包含std oPoint.first = 1; ...
分类:
其他好文 时间:
2014-06-25 20:23:53
阅读次数:
202
功能需求是这样的,两个radio:男和女,一个button:重置。启动页面默认选中男,在用户选择女之后又点击重置按钮,需要恢复到默认状态。男女重置我的js代码是这样的:$("#reSet").click(function() { $("input[name='sex']:first").attr(....
分类:
Web程序 时间:
2014-06-25 16:31:06
阅读次数:
173
http://johndyer.name/native-fullscreen-javascript-api-plus-jquery-plugin/HTML5 is great, but when it was first released, one of the big complaints wa....
分类:
编程语言 时间:
2014-06-25 14:49:46
阅读次数:
229
ios对我而言只有初步的印象:没有android的版本碎片化的头痛但却有封闭体系的控制。作为一个ios开发者,必须掌握:oc大的概念,比如内存管理,委托,存档等。框架。终极目标是知道如何使用每个框架下每个类的每个方法。这是个耗时的事情,因为有超过3000个方法和200个类。而且..
分类:
移动开发 时间:
2014-06-25 10:21:01
阅读次数:
226
欢迎关注我的新博客地址:http://cuipengfei.me/
Lower bound,不知道这个词的确切中文翻译是怎样的。我们直接看例子吧。
1
2
3
class Pair[T](val first: T, val second: T) {
def replaceFirst[R >: T](newFirst: R): Pair[R] ...
分类:
其他好文 时间:
2014-06-25 00:04:48
阅读次数:
381
在ubuntu下启动firefox报错 Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system.
解决:
终端输入 killall firefox...
分类:
其他好文 时间:
2014-06-24 17:08:34
阅读次数:
203
Lua中的函数是一阶类型值(first-class value),定义函数就象创建普通类型值一样(只不过函数类型值的数据主要是一条条指令而已),所以在函数体中仍然可以定义函数。假设函数f2定义在函数f1中,那么就称f2为f1的内嵌(inner)函数,f1为f2的外包(enclosing)函数,外.....
分类:
其他好文 时间:
2014-06-24 11:41:01
阅读次数:
170
#include const char* first = "";//需要验证的字符std::regex rx("^[1-9]\\d{5}[1-9]\\d{3}((0\\d)|(1[0-2]))(([0|1|2]\\d)|3[0-1])\\d{3}([0-9]|X|x)$");//验证的表达式,这个是...
分类:
其他好文 时间:
2014-06-24 11:13:54
阅读次数:
164