韩梦飞沙 韩亚飞 313134555@qq.com yue31313 han_meng_fei_sha Lrucache底层实际是维护的一个linkedHashMap集合(他是hashmap的一个子类,可以保证存入和取出顺序的集合,与hashmap不同的是他是一个双向链表从Android2.3以后, ...
分类:
其他好文 时间:
2017-08-20 21:14:14
阅读次数:
186
-- 目标:动态更新表中数据 -- 老规矩上代码-----------------------------tablename 表名--feildname 字段名数组--feildvalue 字段值数组--returnvalue 返回值 create or replace function f_upd... ...
分类:
数据库 时间:
2017-08-20 14:50:47
阅读次数:
252
使用html5输入正整数,限制输入无效。 输入正整数 1,文本框只能输入数字代码(小数点也不能输入) 代码如下: <input onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value. ...
分类:
Web程序 时间:
2017-08-20 12:42:06
阅读次数:
239
1.myeclipse替换 xxx != null 为 xxx != null and xxx != ‘’时,我们可以Ctrl+F Find: ([a-zA-Z]+)( != null) Replace with : \0 and \1 != '' \0代表整个参数,\1代表第一个组也就是第一个括号 ...
分类:
其他好文 时间:
2017-08-19 18:31:44
阅读次数:
119
网络流 最小割 专业讲解: 对于给定网络,为了保证没有从s到t的路径,求需要删去的边的总容量的最小值。 对于某个顶点集合S?V,从S出发指向S外部的边的集合,记为割(S, V\S)。如果s∈S,t∈(V\S),那么此时的割成为s-t割。如果将割包含的边都删去,就不再有从s到t的路径了。 与最大流问题 ...
分类:
其他好文 时间:
2017-08-19 17:15:02
阅读次数:
182
Oracle中的支持正则表达式的函数主要有下面四个:1,REGEXP_LIKE :与LIKE的功能相似2,REGEXP_INSTR :与INSTR的功能相似3,REGEXP_SUBSTR :与SUBSTR的功能相似4,REGEXP_REPLACE :与REPLACE的功能相似它们在用法上与oracl ...
分类:
数据库 时间:
2017-08-19 14:22:03
阅读次数:
459
參考文章: https://segmentfault.com/a/1190000002873657 http://blog.csdn.net/al4fun/article/details/53888990 一、NestedScrolling机制 吐槽:之前笔者在设计的时候,想在ViewPager的页 ...
分类:
Web程序 时间:
2017-08-19 14:20:07
阅读次数:
604
1 // 十进制转二进制 2 function binary (num, Bits) { 3 var d = parseInt(num / 2) 4 var resArry = [num % 2] 5 for(; d != 0; ) { 6 d = parseInt(d / 2) 7 resArry ...
分类:
Web程序 时间:
2017-08-19 12:48:10
阅读次数:
122
The idea is try to replace every "++" in the current string s to "--" and see if the opponent has the chance to win or not, if the opponent is guarant ...
分类:
其他好文 时间:
2017-08-19 12:44:35
阅读次数:
204
Optionally replace a try statement with the desugaring of a try-with-resources statement. The canonical desugaring of try ResourceSpecification Block ... ...
分类:
编程语言 时间:
2017-08-19 12:38:24
阅读次数:
166