[leetcode]Given a collection of numbers, return all possible permutations....
分类:
其他好文 时间:
2014-10-14 09:58:18
阅读次数:
183
函数可以让我们将一个复杂功能划分成若干模块,让程序结构更加清晰,代码重复利用率更高。像其他编程语言一样,Shell 也支持函数。Shell 函数必须先定义后使用。Shell 函数的定义格式如下:function_name () { list of commands [ return va...
分类:
系统相关 时间:
2014-10-14 06:27:47
阅读次数:
260
<!DOCTYPEhtml><html><head><metacharset="UTF-8"><title>Inserttitlehere222222222222</title><scripttype="text/javascript"src="js/jquery-1.8.0.js"></script><scripttype="text/javascript">$.ping=function(optio..
分类:
其他好文 时间:
2014-10-14 03:38:18
阅读次数:
249
//去除数字元素数组
function sortnum(a, b) {
return a - b;
}
Array.prototype.unique1 = function() {
this.sort(sortnum);
var newnumbers = [this[0]];
for (var i = 0; i < this.length; i++) {
if (this[i] !=...
分类:
编程语言 时间:
2014-10-14 03:24:37
阅读次数:
190
1.COMPUTE 一般用来计算目标端和源段的字段值,使用这个函数计算出目标端对应列想要的值Use the @COMPUTE function to return the value of an arithmetic expression to a target column. The value ...
分类:
其他好文 时间:
2014-10-14 00:30:27
阅读次数:
330
/**
* 数据对象
* @author stone
*
*/
public class DataState {
private String action;
public void setAction(String action) {
this.action = action;
}
public String getAction() {
return action;...
分类:
编程语言 时间:
2014-10-13 23:20:27
阅读次数:
250
package com.entity;public class User { private String username; private String password; private Integer id; public String getUsername() { return use....
分类:
Web程序 时间:
2014-10-13 21:48:07
阅读次数:
225
/**
* 给bitmap画圆角
*
* @param bitmap
* bitmap对象
* @param roundPX
* 圆角的角度
* @return 画好圆角后的bitmap对象
*/
public static Bitmap roundBitmap(Bitmap bitmap, floa...
分类:
其他好文 时间:
2014-10-13 21:04:57
阅读次数:
172
/**
* 判断指定快捷方式是否存在(对root手机有效)
*
* @param context
* 上下文对象
* @param title
* 标题
* @return 存在返回true,不存在或者不具有root权限返回false
*/
public static boolean isExistS...
分类:
其他好文 时间:
2014-10-13 20:48:07
阅读次数:
252
空间复杂度为(1-n),时间复杂度为应该也是最低的,lua方便之处还是很值得利用的
local Random = {}; function Random:Awake()
self.m_min = 1;
self.m_max = 1;
self.m_end = 1;
self.m_rangeMap =...
分类:
其他好文 时间:
2014-10-13 20:22:47
阅读次数:
452