2017年6月22日
摘要: 对一个10000长度的随机数组进行排序,借助索引,高校排序,处理时常165毫秒 排序思想:新创建一个数组最大值长度的数组B,然后遍历原始A,将对应item的数值放入B数组对应的索引位中去,然后按序输出,理论上复杂度为O(n) 阅读全文
posted @ 2017-06-22 11:31 TooYoung222 阅读(484) 评论(0) 推荐(0) 编辑
摘要: 如:k1=2 ; //添加 k2=4 ; //删除 k3=8; //修改 purview = k2|k3; // 赋给添加和删除权限 解释: 第一,2的8位二进制值为00000010 4的8位二进制值为00000100 8的8位二进制值为00001000 第二,当对8和4进行按位或(|)操作后,结果 阅读全文
posted @ 2017-06-22 11:31 TooYoung222 阅读(124) 评论(0) 推荐(0) 编辑
摘要: --1调用存储过程 exec 存储过程名 参数 --2当表使用 select a.*,b.* from tb b inner join ( select * from openrowset('sqloledb','ip/server';'sa';'pwd','exec 库.dbo.存储过程'))a 阅读全文
posted @ 2017-06-22 11:30 TooYoung222 阅读(3387) 评论(0) 推荐(0) 编辑
摘要: String.prototype.format=function() { if(arguments.length==0) return this; for(var s=this, i=0; i<arguments.length; i++) s=s.replace(new RegExp("\\{"+i 阅读全文
posted @ 2017-06-22 11:29 TooYoung222 阅读(338) 评论(0) 推荐(0) 编辑
摘要: /// /// 单个对象映射 /// public static TDestination MapTo(TSource source) { if (source == null) return default(TDestination); Mapper.Initialize(x=... 阅读全文
posted @ 2017-06-22 11:28 TooYoung222 阅读(342) 评论(0) 推荐(0) 编辑
2017年2月10日
摘要: 分为几步: 0、打开Git bash工具 1、进入项目根目录 2、git init 用于git初始化; 3、git add * 添加将所有文件;(可以指定文件) 4、git remote add origin ****** ***代表github网站上创建好的项目目录地址,此处用意为将本地代码与gi 阅读全文
posted @ 2017-02-10 15:38 TooYoung222 阅读(287) 评论(0) 推荐(0) 编辑
摘要: lower(right(sys.fn_VarBinToHexStr(HashBytes('MD5',‘要加密的内容’)),32)) 阅读全文
posted @ 2017-02-10 15:37 TooYoung222 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 提问:1,In my limited experience with .. 谦虚表达自己在某方面的经验2, I am searching for a long time on net. But no use. Please help or try to give some ideas how to 阅读全文
posted @ 2017-02-10 15:37 TooYoung222 阅读(109) 评论(0) 推荐(0) 编辑
摘要: SET STATISTICS IO ON; 开启性能查询 SELECT count(1) from StatePullTask where ServiceProvider='YD' and ProviderSequence='ss10010' SET STATISTICS IO OFF;关闭性能查询 阅读全文
posted @ 2017-02-10 15:36 TooYoung222 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 字节头列表(txt比较特殊,txt的字节头类型会自动变化) Dictionary<string, string> disList = new Dictionary<string, string>();disList.Add("WMV", "4838");disList.Add("FLV", "707 阅读全文
posted @ 2017-02-10 15:35 TooYoung222 阅读(306) 评论(0) 推荐(0) 编辑