1 /** 2 * 生成指定长度的UUID 3 * @param len 4 * @param radix 5 * @returns uuid 6 * eg: createUUID(8, 2) "01001010" createUUID(8, 10) "47473046" createU...
分类:
Web程序 时间:
2015-04-16 14:16:28
阅读次数:
165
rand Central Dispatch (GCD)是Apple开发的一个多核编程的解决方法。
dispatch queue分成以下三种:
1)运行在主线程的Main queue,通过dispatch_get_main_queue获取。
/*!
* @function dispatch_get_main_queue
*
* @abstract
* Returns the d...
分类:
移动开发 时间:
2015-04-14 11:19:45
阅读次数:
172
题目Write a function that takes an unsigned integer and returns the number of ’1’ bits it has (also known as the Hamming weight).For example, the 32-bit integer ’11’ has binary representation 00000000000...
分类:
其他好文 时间:
2015-04-12 21:12:01
阅读次数:
130
备用(1)判断database是否存在DELIMITER $$ DROP FUNCTION IF EXISTS `func_check_db_exists`$$ CREATE FUNCTION `func_check_db_exists`(db_name varchar(64)) RETURNS v...
分类:
数据库 时间:
2015-04-12 17:28:00
阅读次数:
180
performClick 是使用代码主动去调用控件的点击事件(模拟人手去触摸控件)
boolean android.view.View.performClick()
Call this view's OnClickListener, if it is defined.
Returns:True there was an assigned OnClickListen...
分类:
移动开发 时间:
2015-04-11 13:22:18
阅读次数:
201
最近想刷一下LeetCode练习一下数据结构算法之类的,先从水题开始吧题目是这样的Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as theH...
分类:
其他好文 时间:
2015-04-10 13:11:14
阅读次数:
117
可以将下面的代码保存在一个文件里如:myAjax.js,以后在项目中如果觉得jquery那一套很重,就完全可以使用自己的ajax库,不用担心性能和兼容性!/*** 创建ajax请求对象* @returns XMLHTTPREQUEST*/function createAjaxObj(){ var r...
分类:
Web程序 时间:
2015-04-08 21:16:35
阅读次数:
153
Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight).For example, the 32-bit i...
分类:
其他好文 时间:
2015-04-08 12:21:36
阅读次数:
101
Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as theHamming weight).For example, the 32-bit in...
分类:
其他好文 时间:
2015-04-08 07:58:32
阅读次数:
106
Number of 1 Bits
Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming
weight).
For example, the 32-bit integer ’11' has bin...
分类:
其他好文 时间:
2015-04-07 15:43:06
阅读次数:
125