码迷,mamicode.com
首页 >  
搜索关键字:param    ( 11285个结果
强制PowerShell脚本以管理员权限运行
param($a,$b )#region 关键代码:强迫以管理员权限运行$currentWi =[Security.Principal.WindowsIdentity]::GetCurrent()$currentWp =[Security.Principal.WindowsPrincipal]$cu...
分类:其他好文   时间:2014-06-28 10:32:29    阅读次数:797
计算指定日期的前N个月日期
/** * 计算指定日期的前N个月日期 * @param type $time * @param int $month_length * @return date */ public function calLMP($time,$month_length ){ $r = date('Y-m-d',....
分类:其他好文   时间:2014-06-27 22:14:21    阅读次数:270
随机获取部分List<Object>集合
随机返回list对象 /** * 返回随机List * @param list 备选 * @param selected 备选数量 * @return */ public List getRandomNum(List list, int select...
分类:其他好文   时间:2014-06-25 21:34:40    阅读次数:341
JavaScript显示分页按钮
/** * * @param total_page 总页数 * @param current_page 当前页 * @param num 页面显示多少个分页按钮 * @returns {string} */exports.get_page_html = function(...
分类:编程语言   时间:2014-06-25 12:20:56    阅读次数:229
PHP - PDO 之 mysql 参数绑定
prepare("select * from level_class where id = ?"); $id = 28; $obj->bindParam(1,$id,PDO::PARAM_INT); $obj->execute(); $result = $obj->f...
分类:数据库   时间:2014-06-25 09:16:27    阅读次数:377
Some useful methods about linkedList.
/** * Method 1: Delete the input element x  * and meanwhile keep the length of array after deleted n * @param a  the array * @param n  the length of array after deleted. * @param x  the element t...
分类:其他好文   时间:2014-06-25 08:27:27    阅读次数:171
表达式求值 - Java实现
本程序用于计算任意四则运算表达式。如 4 * ( 10 + 2 ) + 1 的结果应该为 49。 算法说明: 1. 首先定义运算符优先级。我们用一个 Map> 来保存优先级表。这样我们就可以通过下面的方式来计算两个运算符的优先级了: /** * 查表得到op1和op2的优先级 * @param op1 运算符1 * @param op2 运算符2 * @retur...
分类:编程语言   时间:2014-06-24 22:37:29    阅读次数:217
Reverse Words in a String
【问题】 Given an input string, reverse the string word by word. For example, Given s = "the sky is blue", return "blue is sky the". 【代码】 class Solution: # @param s, a string # @retu...
分类:其他好文   时间:2014-06-24 21:00:30    阅读次数:168
避免多层回调,Node.js异步模块Async初使用
原来写的一个分页查询,回调了好几层。exports.list = function(req,res) { var params = {}; var current_page = common_util.get_param_value(req,'current_page','Number'...
分类:Web程序   时间:2014-06-24 12:41:15    阅读次数:353
系统内存信息获取工具类
/** * 得到系统内存信息的工具类 * @author zwenkai */public class SystemInfoUtils { /** * 得到运行的进程总个数 * * @param context * @return 运行进程个数 */ public static int getRun...
分类:其他好文   时间:2014-06-24 12:31:36    阅读次数:172
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!