quick下sprite的大小获取,记录一下:local w = sprite:getContentSize().widthlocal h =sprite:getContentSize().height今天连这个最基本的,都不知道怎么获取。挺实用的代码额~
分类:
其他好文 时间:
2014-07-07 08:41:25
阅读次数:
377
Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 6The flattened t...
分类:
其他好文 时间:
2014-07-03 20:32:55
阅读次数:
429
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Pana...
分类:
其他好文 时间:
2014-07-03 19:38:58
阅读次数:
287
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given[100, 4, 200, 1, 3, 2],The longest ...
分类:
其他好文 时间:
2014-07-03 19:24:36
阅读次数:
142
Given a sorted linked list, delete all duplicates such that each element appear onlyonce.For example,Given1->1->2, return1->2.Given1->1->2->3->3, retu...
分类:
其他好文 时间:
2014-07-03 18:57:04
阅读次数:
193
完整错误信息:Description Resource Path Location TypeProject configuration is not up-to-date with pom.xml. Run Maven->Update Project or use Quick Fix. xunge-web line 1 Maven Configuration Problem解决办法:...
分类:
其他好文 时间:
2014-07-03 18:11:39
阅读次数:
213
一、Solr学习相关资料
1、官方材料
(1)快速入门:http://lucene.apache.org/solr/4_9_0/tutorial.html,以自带的example项目快速介绍发Solr的基础使用。
(2)API:http://lucene.apache.org/solr/4_9_0/index.html
(3)reference:PDF格式,apache-solr-ref-...
分类:
其他好文 时间:
2014-07-03 16:56:58
阅读次数:
245
在一个字符串中求不重复子串的最大长度是一个经典的贪心法求解问题(说子串自然是连续的,子序列则不要求连续)。
先给出leetcode上这题的描述:
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring wit...
分类:
其他好文 时间:
2014-07-03 16:24:55
阅读次数:
281
Iwanttostudyitallthetime,andnowIamreadytostudythisbookinthenextmouth.Time:2014/07/02先看一个程序体验一下:#include<iostream>
intmain()
{
/*Thisisatestexample*/
std::cout<<"Entertwonumbers:"<<std::endl;
intv1,v2;
std::cin>>v1>>v..
分类:
编程语言 时间:
2014-07-03 15:24:04
阅读次数:
221
今天看到一网友观看老男孩shell视频后,问了一个问题如下:解答思想:我们学习shell的最好方法就是参看系统的标杆脚本及帮助的example。下面是网卡启动脚本的有关这位网友问题的脚本样例。很明显上述中括号字符比较等号两边有空格。所以上述的问题答案就不言而喻了。[root@oldb..
分类:
其他好文 时间:
2014-07-03 15:11:06
阅读次数:
178