码迷,mamicode.com
首页 >  
搜索关键字:redis list    ( 76141个结果
list<> 中find的使用
昨天要在 std::list 中判断是否存在某一字符串 std::string 。我首先想先迭代+std::string自带的"==" 判断,也就是 list listStr; string s1; for(vector::iterator itr=lis...
分类:其他好文   时间:2014-06-15 23:55:32    阅读次数:386
Programmatically Disable Event Firing on List Item Update in SharePoint 2010
1. Microsoft.SharePoint.dllCreate EventFiring.cs 1.Right-click on the project, select Add and click on New Item. 2.In the templates pane, select Class...
分类:其他好文   时间:2014-06-15 23:35:26    阅读次数:277
spring jdbc查询 依赖JdbcTemplate这个类模版封装JDBC的操作
1 package cn.itcast.spring.jdbc; 2 3 import java.util.List; 4 5 import org.springframework.jdbc.core.support.JdbcDaoSupport; 6 7 public class Pers...
分类:数据库   时间:2014-06-15 22:19:23    阅读次数:443
List集合去重
今天看到别人的代码使用 Linq 的Distinct进行去重。发现有很多需要注意的地方。实现方式如下:Linq 的Distinct方法需要传递一个自己实现IEqualityComparer的类来作为比较器。 public static class EnumerableExtension ...
分类:其他好文   时间:2014-06-15 22:07:35    阅读次数:307
[leetcode]Merge Two Sorted Lists @ Python
原题地址:https://oj.leetcode.com/problems/merge-two-sorted-lists/题意:Merge two sorted linked lists and return it as a new list. The new list should be made...
分类:编程语言   时间:2014-06-15 21:58:31    阅读次数:238
C# Dictionary 的几种遍历方法,排序
Dictionary list = new Dictionary(); list.Add("d", 1); //3.0以上版本 foreach (var item in list) { ...
分类:其他好文   时间:2014-06-15 21:54:38    阅读次数:248
[leetcode]Reverse Nodes in k-Group @ Python
原题地址:https://oj.leetcode.com/problems/reverse-nodes-in-k-group/题意:Given a linked list, reverse the nodes of a linked listkat a time and return its mod...
分类:编程语言   时间:2014-06-15 21:24:43    阅读次数:293
lucene对文件做简单的索引
package com.mylucene; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.io.Reader; import java.nio.CharBuffer; import java.util.ArrayList; import java.util.List;...
分类:其他好文   时间:2014-06-15 17:50:57    阅读次数:253
杭电OJ(HDU)-ACMSteps-Chapter Two-《An Easy Task》《Buildings》《decimal system》《Vowel Counting》
http://acm.hdu.edu.cn/game/entry/problem/list.php?chapterid=1&sectionid=21.2.5 #include /* 题意:找闰年。 if((i%4==0 && i%100!=0) || i%400==0)count++; 3 2005 25 1855 12 2004 10000 2108 1904 43236 */ int ma...
分类:其他好文   时间:2014-06-14 06:32:08    阅读次数:320
监控开发之用munin来自定义插件监控redis和mongodb
求监控组的大哥大妹子们干点事,真不容易!要问他们是谁?他们是神。轻易别找他们,因为找了也是白找。上次因为python和redis长时间brpop的时候,会有线程休眠挂起的情况,所有通知报警平台被下线了。这次算是完美解决了。再把他给上线。这两公司的告警已经开始往我这边的接口..
分类:数据库   时间:2014-06-13 21:08:17    阅读次数:414
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!