码迷,mamicode.com
首页 > 其他好文
dojo chart生成函数
dojo chart生成函数...
分类:其他好文   时间:2014-10-12 13:48:38    阅读次数:273
验证码倒计时帮助类CountDownButtonHelper的实现
转载请注明出处:http://blog.csdn.net/zhaokaiqiang1992     我们在做有关短信验证码功能的时候,为了防止用户无休止的获取短信验证码,或者是误操作,造成验证码混乱的情况,我们一般在获取验证码功能的Button上面加上倒计时功能,从而限制用户获取验证码的间隔。     今天这篇文章,是介绍如何使用CountDowmTimer实现验证码的倒计时功能的。...
分类:其他好文   时间:2014-10-12 12:41:38    阅读次数:205
Handler详解系列(五)——Handler的post()方法详解
MainActivity如下: package cc.c; import android.app.Activity; import android.os.Bundle; import android.os.Handler; import android.os.Looper; import android.os.Message; import android.widget.TextView; /...
分类:其他好文   时间:2014-10-12 14:21:28    阅读次数:174
POJ1064 Cable master(二分)
本题用二分搜索可以很容易的求出答案。设条件C(X)为可以得到K条长度为X的绳子,C(x)=(floor(L(i)/x))。X的初始范围为(0,Max(L(i))+1)。 #include #include #include #include #include using namespace std; double a[10005]; int n,k; void solve(double l,...
分类:其他好文   时间:2014-10-12 13:30:48    阅读次数:221
Handler详解系列(一)——Handler异步消息机制详解(附图)
MainActivity如下: package cc.cn; import android.os.Bundle; import android.os.Handler; import android.os.Looper; import android.os.Message; import android.util.Log; import android.app.Activity; /** *...
分类:其他好文   时间:2014-10-12 12:57:18    阅读次数:286
数据挖掘学习指引<一>
对于大数据、数据挖掘等...
分类:其他好文   时间:2014-10-12 12:40:28    阅读次数:172
黑天鹅笔记
1. 黑天鹅现象,黑天鹅现象具有三个特点:不可预测性,影响重大,事后可解释。 2.我们不断根据事件发生之后我们觉得有道理的逻辑重新叙述过去的事件。 3.避免叙述错误的办法就是强调实验而非讲故事,强调体验而非历史,强调客观知识而非理论。 4.那些我们没有看到的结果可能,不,是通常更具有意义。 5.我们冒险通常不是出于自信,而是出于无知和对不确定性的无视! 6.我们在对随机事件的认识上容易...
分类:其他好文   时间:2014-10-12 12:40:18    阅读次数:204
【HDU】 1018 Big Number
大意就是求 log10(n!) = log10(1 * 2 *  3 * .......*n) = log10(1) + log10(2)...
分类:其他好文   时间:2014-10-12 13:46:48    阅读次数:257
GNU GPL介绍
本文介绍了GNU许可证、GPL的历史、版本以及详细条件,相信读者看了本文后对GNU GPL会有更深的认识。...
分类:其他好文   时间:2014-10-12 14:03:08    阅读次数:277
大众点评笔试题最后两题题解
两道题...
分类:其他好文   时间:2014-10-12 14:19:38    阅读次数:187
单例模式
单例模式是比较常用的设计模式,他的主要功能是该类只能产生一个对象,即每次使用该类的对象使用的是同一个对象。这个对象由该类自己产生,同时由该类向系统提供。 下面看他的一种具体实现 package single; public class Danli { private static Danli dan = null; private Danli(){ //可以对初始对象进行一些相应...
分类:其他好文   时间:2014-10-12 13:29:28    阅读次数:193
Cocos2d-X中的CCSprite
??  在cocos2d-x中,精灵CCSprite是整个游戏开发处理的主要对象,例如天上的飞机、地上的坦克、玩家控制的任务等等都是精灵。甚至天上随机飘过的一朵白云、飞过的一只鸟也都是精灵。实际上,精灵就是一个可以不断变化的图片,变化包括位置变化、旋转、放大、运动等等。   可见,精灵在游戏中是十分重要的组成部分,随处可见。在cocos2d-x中,要用到图片展示的,基本上会使用到精灵类,CC...
分类:其他好文   时间:2014-10-12 12:22:28    阅读次数:295
leetcode 二分法 Pow(x, n)
Pow(x, n)  Total Accepted: 25273 Total Submissions: 97470My Submissions Implement pow(x, n). 题意:求x的n次幂 思路:二分法 n有可能是负的或正的 当n为负是,pow(x, n) = 1/pow(x, -n) x^n = x^{n/2} *...
分类:其他好文   时间:2014-10-12 13:28:58    阅读次数:169
for循环中i变量初始化时报错
for循环中i变量初始化时报错...
分类:其他好文   时间:2014-10-12 13:28:38    阅读次数:218
google在线测试练习题1
Problem You receive a credit C at a local store and would like to buy two items. You first walk through the store and create a list L of all available items. From this list you would like to buy tw...
分类:其他好文   时间:2014-10-12 12:38:28    阅读次数:241
google在线测试练习题3
Problem The Latin alphabet contains 26 characters and telephones only have ten digits on the keypad. We would like to make it easier to write a message to your friend using a sequence of keypresses t...
分类:其他好文   时间:2014-10-12 12:54:58    阅读次数:163
google在线测试练习题2
Problem Given a list of space separated words, reverse the order of the words. Each line of text contains L letters and W words. A line will only consist of letters and space characters. There will...
分类:其他好文   时间:2014-10-12 13:11:28    阅读次数:133
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!