在上一篇文章中,我曾提到我所选择的是Green Robot提供的EventBus(Android平台),而且这并非只是我一个人的选择。在最近一次查看中,我发现选择它的人数已经是Otto(由Jake Wharton和其他大神们在Square上所提供的版本)的两倍之多了。GR的版本显然比Otto有更多的...
分类:
移动开发 时间:
2015-11-17 16:53:29
阅读次数:
245
POJ1979DescriptionThere is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile....
分类:
其他好文 时间:
2015-11-17 10:36:52
阅读次数:
198
前言你被概率性的 OOM 困扰么?有时候,OOM 像幽灵一样,挥之不去,可真想把它揪出来时,又捉之不着。或许,是时候用LeakCanary来诊断一下了。它是一个用来检查 Android 下内存泄漏的开源库,这篇文章主要介绍其用法、架构和其背后的实现原理。Square有篇文章介绍了开发这个库的原因。他...
分类:
移动开发 时间:
2015-11-13 00:57:57
阅读次数:
341
Fire NetTime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeHDU 1045DescriptionSuppose that we have a square city wi...
分类:
Web程序 时间:
2015-11-11 10:05:16
阅读次数:
297
最近发现UL的好用之处,不论是列表,图形,导航,都十分方便,敲代码速度有了显著提升: 无序列表 ... 内容1 内容2 ... 说明: 表示一个项目. 项目符号类型: disc ● circle ○ square ■
分类:
其他好文 时间:
2015-11-08 22:32:48
阅读次数:
226
Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n.For example, given n = 12, return 3 because 12 = 4 + 4 + 4; given n = 13, retu...
分类:
其他好文 时间:
2015-11-06 21:05:22
阅读次数:
227
Implementint sqrt(int x).Compute and return the square root ofx.简单的二分法,注意mid应该选为long,否则容易溢出: 1 class Solution { 2 public: 3 int mySqrt(int x) { 4 ...
分类:
其他好文 时间:
2015-11-05 22:13:44
阅读次数:
191
老板今天让在网站上面显示实时监控画面,研究了一早,找了个简单的方法 先把监控分享在网上(我使用的海康威视摄像头,分享到萤石直播http://square.ys7.com/square/index.jsp),然后在自己的网站上面截取视频部分就可以了。 下面是自己的代码: ...
分类:
Web程序 时间:
2015-11-04 11:31:05
阅读次数:
388
1、题目名称 Spiral Matrix(螺旋输出矩阵中的元素) 2、题目地址 https://leetcode.com/problems/spiral-matrix-ii/ 3、题目内容 英文:Given an integer n, generate a square matrix filled with elements fro...
分类:
其他好文 时间:
2015-11-03 23:13:34
阅读次数:
339
https://leetcode.com/problems/perfect-squares/Given a positive integern, find the least number of perfect square numbers (for example,1, 4, 9, 16, ......
分类:
其他好文 时间:
2015-11-02 15:28:38
阅读次数:
165